We follow mostly pep8.
Line width is 88 (standard black).
For exceptions see .flake8
Run linting:
make lintCheck linting:
bash scripts/lint-check.shpoetry run pre-commit installFormats code
poetry run black .Sorts imports
poetry run isort .Removes unused imports and unused variables.
poetry run autoflake --in-place --recursive --ignore-init-module-imports --expand-star-imports --remove-unused-variables .Used for enforcing style guide. This will not format anything.
poetry run flake8 .Static type checking. Doesn't format anything.
poetry run mypy .poetry run black . && poetry run isort . && poetry run autoflake -i -r --ignore-init-module-imports --expand-star-imports --remove-unused-variables . && poetry run flake8 . && poetry run mypy .