Skip to content

Commit ec23298

Browse files
committed
pre-commit: tweaks after linting our code
Related readthedocs/readthedocs.org#10129
1 parent d1ba049 commit ec23298

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

pre-commit-config.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,22 @@ repos:
1818
- id: debug-statements
1919
- id: fix-byte-order-marker
2020
- id: end-of-file-fixer
21-
exclude: 'static'
2221
- id: fix-encoding-pragma
22+
exclude: |
23+
(?x)^(
24+
readthedocs/rtd_tests/files/conf.py|
25+
)$
2326
args: ['--remove']
2427
- id: check-merge-conflict
2528
- id: check-symlinks
2629
- id: trailing-whitespace
30+
exclude: |
31+
(?x)^(
32+
docs/.+/locale/.*\.po|
33+
.+\.svg|
34+
.+\.js|
35+
.+\.css|
36+
)$
2737
- id: mixed-line-ending
2838
args: ['--fix=lf']
2939

@@ -49,9 +59,9 @@ repos:
4959
- --die-on-tool-error
5060
exclude: |
5161
(?x)^(
52-
.*/docs/.*|
62+
docs/.*|
63+
common/.*|
5364
.*/settings/.*|
54-
.*/common/.*|
5565
.*/rtd_tests/.*|
5666
.*/tests/.*|
5767
.*/migrations/.*
@@ -74,6 +84,10 @@ repos:
7484
# darker is not compatible with v22.1.0
7585
# https://github.com/akaihola/darker/issues/264
7686
- black==21.12b0
87+
exclude: |
88+
(?x)^(
89+
readthedocs/rtd_tests/files/conf.py|
90+
)$
7791
7892
- repo: https://github.com/asottile/blacken-docs
7993
rev: v1.12.1

0 commit comments

Comments
 (0)