Add pre-commit hook and use in CI.

This commit is contained in:
David Wobrock authored and David Wobrock committed 2022-12-26 16:26:24 +01:00
1 parent 2ee7dac3b3
commit f86e0622a5
8 files changed
+53 -27

No files matched your search

+2 -8
View File
@@ -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 =