Add pre-commit hook and use in CI.
This commit is contained in:
1 parent
2ee7dac3b3
commit
f86e0622a5
8 files changed
+53
-27
No files matched your search
@@ -26,14 +26,8 @@ deps =
|
||||
|
||||
[testenv:lint]
|
||||
basepython = python3.10
|
||||
deps =
|
||||
-r requirements/dev.txt
|
||||
commands =
|
||||
flake8 django_migration_linter/
|
||||
black --check django_migration_linter/ tests/ manage.py setup.py
|
||||
isort --check-only .
|
||||
mypy django_migration_linter/
|
||||
ruff django_migration_linter/
|
||||
deps = pre-commit
|
||||
commands = pre-commit run --all-files --show-diff-on-failure
|
||||
|
||||
[testenv:coverage]
|
||||
commands =
|
||||
|
||||
Reference in new issue
Block a user