Skip to content

Commit 95a4f41

Browse files
committed
add file-contents-sorter hook
1 parent 3a59c91 commit 95a4f41

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ repos:
4646
- id: forbid-new-submodules
4747
- id: mixed-line-ending
4848
- id: trailing-whitespace
49+
- id: file-contents-sorter
50+
files: |
51+
(?x)^(
52+
.*requirements(-\w+)?.(in|txt)|
53+
requirements/.*\.txt|
54+
.gitignore
55+
)
4956
5057
- repo: https://github.com/pre-commit/mirrors-mypy
5158
rev: v1.8.0

0 commit comments

Comments
 (0)