Skip to content

Commit

Permalink
10575: Update black configs to stop it skipping migration files
Browse files Browse the repository at this point in the history
This brings it into line with isort running on all things.

Note: removing the `migrations` dir from the exclusions will broaden the scope of other tools that pre-commit uses, but this makes sense as black and isort will be targetting these, so why not flake8 too?
  • Loading branch information
stevejalim committed Oct 11, 2021
1 parent ab38b08 commit 17f1a74
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exclude: >
| assets
| static
| bedrock/externalfiles/files_cache
| ^.*\b(migrations)\b.*$
| git-repos
| lib/fluent_migrations
)
Expand Down
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
line-length = 150 # To match flake8
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
/(
.+/migrations
)
'''

[tool.isort]
combine_as_imports = true
Expand Down

0 comments on commit 17f1a74

Please sign in to comment.