Skip to content

Commit

Permalink
Exclude migrations from isort, black, and pre-commit-hooks tuneups
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Mar 10, 2024
1 parent 88c6c50 commit e2f4c65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ repos:
.+\.svg|
.+\.js|
.+\.css|
.*/migrations/.*|
)$
- id: mixed-line-ending
args: ['--fix=lf']
Expand Down Expand Up @@ -68,6 +69,7 @@ repos:
exclude: |
(?x)^(
readthedocs/rtd_tests/files/conf.py|
.*/migrations/.*
)$
# NOTE: run `isort` after `black` to keep the format of isort finally
Expand All @@ -76,6 +78,10 @@ repos:
hooks:
- id: isort
name: isort (python)
exclude: |
(?x)^(
.*/migrations/.*
)
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
Expand Down

0 comments on commit e2f4c65

Please sign in to comment.