Don't explicitly list python directories

This means as others are added, they'll be automatically linted
This commit is contained in:
Jake Howard 2022-07-29 08:46:44 +01:00
parent 9a15fcbe60
commit 856079c118
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 12 additions and 10 deletions

View file

@ -86,22 +86,22 @@ django_checks:
black:
<<: *python_test_template
script:
- black --check website
- black --check .
isort:
<<: *python_test_template
script:
- isort --check website
- isort --check .
flake8:
<<: *python_test_template
script:
- flake8 website
- flake8
mypy:
<<: *python_test_template
script:
- mypy website
- mypy .
prettier:
<<: *node_test_template

View file

@ -26,17 +26,17 @@ test *ARGS:
./manage.py test {{ ARGS }}
format:
black website
isort website
black .
isort .
npm run format
lint: lint_python lint_node
lint_python:
black --check website
isort --check website
flake8 website
mypy website --show-error-codes
black --check .
isort --check .
flake8
mypy . --show-error-codes
@lint_node:
npm run lint

View file

@ -7,6 +7,8 @@ ignore_missing_imports = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
exclude=
docker/dev/volumes
[isort]
multi_line_output=3