Open VMois opened 2 years ago
There are also other tools, for example pyanalyze.
Pyright has a nice getting started page. It follows several PEP conventions listed in the README.
Strictness can be controlled, some rules can be disabled, etc. similar to flake.
Support for VS Code, no direct support for PyCharm (but can be added as command-line tool).
Can be used in GitHub Actions in a similar way we use flake
or pydocstyle
.
The circular import I faced some time ago: https://stackoverflow.com/questions/39740632/python-type-hinting-without-cyclic-imports
I think it was happening when trying to use Model type hints in the utils module of reana-db
, thus causing circular imports as models.py
does some imports from utils.py
.
As an addition to the list, we can also try - https://sonarsource.com/open-source-editions/ for both personal uses and, as an integration, with GitHub for reviews.
List of type checkers to investigate:
Criteria: