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:
|
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
|
||||||
|
|
12
justfile
12
justfile
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue