File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ - id : check-migrations
2+ name : Check migrations
3+ entry : mpt-service-cli migrate --check
4+ language : python
5+ pass_filenames : false
6+ files : ^migrations/.*\.py$
7+ exclude : __init__\.py$
8+ description : Check for duplicate migration_id in migration files
Original file line number Diff line number Diff line change @@ -60,6 +60,19 @@ make test args="-k test_cli -vv"
6060make test args=" tests/test_cli.py"
6161```
6262
63+ ## Pre-commit
64+
65+ Checking migrations with pre-commit:
66+
67+ Add this to your .pre-commit-config.yaml
68+
69+ ``` yaml
70+ - repo : https://github.com/softwareone-platform/mpt-tool
71+ rev : ' ' # Use the sha / tag you want to point at
72+ hooks :
73+ - id : check-migrations
74+ ` ` `
75+
6376## Developer utilities
6477
6578Useful helper targets during development:
You can’t perform that action at this time.
0 commit comments