-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: python doc script classes (#301)
* feat: adding snapshot tests * allow snapshot tests to fail * more tests on ugly classes * refactor away the document classes migrate gen_topology_groupmethods.py migrate gen_topologyattr_defaults.py migrate FormatOverview migrate CoordinateReaders migrate gen_format_overview_classes migrate TopologyParsers migrate TopologyAttrs migrate ConnectivityAttrs remove dead code, never executed remove all class attributes all non-strict mypy checks pass, mypy in pre-commit first nice simplification another nice simplification more simplifications further cleanups further trimmings continue to refactor update base.py harmonize to use private functions simpler code architecture more refactoring mypy strict mode on some files finish mypy changes flake8 on everything Update doc/source/scripts/base.py Co-authored-by: Lily Wang <[email protected]> Update doc/source/scripts/gen_format_overview_classes.py Co-authored-by: Lily Wang <[email protected]> Update doc/source/scripts/gen_format_overview_classes.py Co-authored-by: Lily Wang <[email protected]> Update doc/source/scripts/gen_format_overview_classes.py Co-authored-by: Lily Wang <[email protected]> Update doc/source/scripts/gen_format_overview_classes.py Co-authored-by: Lily Wang <[email protected]> review comments from Lily fixing mypy * Update doc/source/scripts/base.py Co-authored-by: Lily Wang <[email protected]> * Update doc/source/scripts/gen_format_overview_classes.py Co-authored-by: Lily Wang <[email protected]> * Update doc/source/scripts/gen_topologyparser_attrs.py Co-authored-by: Lily Wang <[email protected]> * Update doc/source/scripts/gen_topologyparser_attrs.py Co-authored-by: Lily Wang <[email protected]> * Update doc/source/scripts/gen_topologyparser_attrs.py Co-authored-by: Lily Wang <[email protected]> * Update doc/source/scripts/gen_topologyparser_attrs.py Co-authored-by: Lily Wang <[email protected]> * Update doc/source/scripts/gen_topologyparser_attrs.py Co-authored-by: Lily Wang <[email protected]> * review: comments from Lily * fix tests * more flake8 goodies * run linter --------- Co-authored-by: Lily Wang <[email protected]>
- Loading branch information
1 parent
5e660d0
commit a952cb2
Showing
21 changed files
with
682 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.