Skip to content

Commit 3761c3a

Browse files
committed
Skip migrations in black/isort/pre-commit
1 parent 52e78e6 commit 3761c3a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ repos:
33
rev: 20.8b1
44
hooks:
55
- id: black
6+
exclude: ^(oauth2_provider/migrations/|tests/migrations/)
67
- repo: https://github.com/pre-commit/pre-commit-hooks
78
rev: v3.2.0
89
hooks:
@@ -18,7 +19,9 @@ repos:
1819
rev: 5.6.3
1920
hooks:
2021
- id: isort
22+
exclude: ^(oauth2_provider/migrations/|tests/migrations/)
2123
- repo: https://gitlab.com/pycqa/flake8
2224
rev: 3.8.4
2325
hooks:
2426
- id: flake8
27+
exclude: ^(oauth2_provider/migrations/|tests/migrations/)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ include_trailing_comma = True
9090
force_grid_wrap = 0
9191
use_parentheses = True
9292
ensure_newline_before_comments = True
93-
skip = oauth2_provider/migrations/, .tox/
93+
skip = oauth2_provider/migrations/, .tox/, tests/migrations/

0 commit comments

Comments
 (0)