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: black:
<<: *python_test_template <<: *python_test_template
script: script:
- black --check website - black --check .
isort: isort:
<<: *python_test_template <<: *python_test_template
script: script:
- isort --check website - isort --check .
flake8: flake8:
<<: *python_test_template <<: *python_test_template
script: script:
- flake8 website - flake8
mypy: mypy:
<<: *python_test_template <<: *python_test_template
script: script:
- mypy website - mypy .
prettier: prettier:
<<: *node_test_template <<: *node_test_template

View file

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

View file

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