diff options
author | Ross Barnowski <rossbar@berkeley.edu> | 2021-11-17 21:12:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 21:12:56 -0800 |
commit | 00c261f951ae6734001e0419d2bc754eef6dd1b2 (patch) | |
tree | 54e6ce86c89f3de9f2d960f4726025487216d3c8 /.mypy.ini | |
parent | 4ebdb5e2ca6c6a1f9fb3bf8c2279f9b857c6d8a7 (diff) | |
download | networkx-00c261f951ae6734001e0419d2bc754eef6dd1b2.tar.gz |
Add Mypy type checking infrastructure (#5127)
* Add minimal mypy configuration file.
* Add mypy workflow to GH.
* Properly import sentinels from traversal.edgedfs.
* mypy doesn't like variables named \"e\".
* Rm annotations from single function.
* Fix name collisions in test suite.
Make sure all tests have unique names.
* Rm unused random seed in test setup.
* Rm redundant __all__ specification.
* Silence mypy error from sum(). Mypy bug?
* Fix tsp test instantiation nit.
* \"type: ignore\" to suppress conditional fn sigature errors.
* Remaining \"type: ignore\" to appease mypy.
* Configure mypy to ignore inheritance issues.
* Update exclude conf for CI.
- Add yaml
- Reformat regex containing reportviews
* Rm partial annotations from lukes.py.
Fixes mypy errors due to unannotated code.
* Reorg defaultdict to reduce type: ignore cruft.
* Homogenize signatures for fns defined in conditionals.
* err as varname only in exception catching.
* Fix name collision in Bellman-Ford test suite.
Diffstat (limited to '.mypy.ini')
-rw-r--r-- | .mypy.ini | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.mypy.ini b/.mypy.ini new file mode 100644 index 00000000..f10a25b3 --- /dev/null +++ b/.mypy.ini @@ -0,0 +1,3 @@ +[mypy] +ignore_missing_imports = True +exclude = yaml|subgraphviews|reportviews* |