File tree Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,10 @@ repos:
21
21
hooks :
22
22
- id : ruff
23
23
args : ["--fix"]
24
- exclude : &fixtures tests(/\w*)*/functional/|tests/input| doc/data/messages|tests(/\w*)*data/
24
+ exclude : doc/data/messages
25
25
- id : ruff
26
26
name : ruff-doc
27
27
files : doc/data/messages
28
- exclude : |
29
- (?x)^(
30
- doc/data/messages/d/duplicate-argument-name/bad.py|
31
- doc/data/messages/s/syntax-error/bad.py
32
- )$
33
-
34
- args : ["--config", "doc/data/ruff.toml"]
35
28
- repo : https://github.com/Pierre-Sassoulas/copyright_notice_precommit
36
29
rev : 0.1.2
37
30
hooks :
49
42
hooks :
50
43
- id : black
51
44
args : [--safe, --quiet]
52
- exclude : * fixtures
45
+ exclude : & fixtures tests(/\w*)*/functional/|tests/input|doc/data/messages|tests(/\w*)*data/
53
46
- id : black
54
47
name : black-doc
55
48
args : [--safe, --quiet]
Original file line number Diff line number Diff line change 2
2
# (Because of horizontal scrolling)
3
3
line-length = 103
4
4
5
+ extend-exclude = [
6
+ " messages/d/duplicate-argument-name/bad.py" ,
7
+ " messages/s/syntax-error/bad.py" ,
8
+ ]
9
+
5
10
[lint ]
6
11
ignore = []
7
12
select = [" E501" , " I" ]
8
13
9
14
10
15
[lint .per-file-ignores ]
11
- "doc/data/ messages/r/reimported /bad.py" = [" I" ]
12
- "doc/data/ messages/w/wrong-import-order /bad.py" = [" I" ]
13
- "doc/data/ messages/u/ungrouped-imports /bad.py" = [" I" ]
14
- "doc/data/ messages/m/misplaced-future /bad.py" = [" I" ]
15
- "doc/data/ messages/m/multiple-imports /bad.py" = [" I" ]
16
+ "messages/m/misplaced-future /bad.py" = [" I" ]
17
+ "messages/m/multiple-imports /bad.py" = [" I" ]
18
+ "messages/r/reimported /bad.py" = [" I" ]
19
+ "messages/u/ungrouped-imports /bad.py" = [" I" ]
20
+ "messages/w/wrong-import-order /bad.py" = [" I" ]
Original file line number Diff line number Diff line change @@ -145,6 +145,13 @@ module = [
145
145
# (for docstrings, strings and comments in particular).
146
146
line-length = 115
147
147
148
+ extend-exclude = [
149
+ " tests/**/data/" ,
150
+ " tests/**/functional/" ,
151
+ " tests/input/" ,
152
+ " tests/regrtest_data/" ,
153
+ ]
154
+
148
155
[tool .ruff .lint ]
149
156
select = [
150
157
" B" , # bugbear
You can’t perform that action at this time.
0 commit comments