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
@@ -6,4 +6,3 @@ A small note on how the linter is usually published to PyPi:
|
||||
- `pip install wheel twine`
|
||||
- `python3 setup.py sdist bdist_wheel --universal`
|
||||
- `twine upload dist/django_migration_linter-X.Y.Z-py3-none-any.whl dist/django-migration-linter-X.Y.Z.tar.gz`
|
||||
|
||||
@@ -11,4 +11,4 @@ You can either tweak the ``tests/test_project/settings.py`` file to get your DB
|
||||
## Database setup
|
||||
|
||||
By default, the test Django project in the repository has multiple databases configured in order to make the CI tests work.
|
||||
Do not hesitate to modify [the configured test databases](../../tests/test_project/settings.py).
|
||||
Do not hesitate to modify [the configured test databases](../../tests/test_project/settings.py).
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
## Command line usage
|
||||
|
||||
The linter is installed as a Django app and is integrated through the Django management command system.
|
||||
The linter is installed as a Django app and is integrated through the Django management command system.
|
||||
|
||||
`python manage.py lintmigrations [app_label] [migration_name]`
|
||||
|
||||
|
||||
Reference in new issue
Block a user