Don't explicitly list python directories
This means as others are added, they'll be automatically linted
This commit is contained in:
parent
9a15fcbe60
commit
856079c118
3 changed files with 12 additions and 10 deletions
|
@ -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
|
||||
|
|
12
justfile
12
justfile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue