-
Notifications
You must be signed in to change notification settings - Fork 903
/
ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap
125 lines (113 loc) · 2.42 KB
/
ruff_linter__rules__pygrep_hooks__tests__PGH004_PGH004_0.py.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
---
source: crates/ruff_linter/src/rules/pygrep_hooks/mod.rs
---
PGH004_0.py:1:8: PGH004 Use specific rule codes when using `noqa`
|
1 | x = 1 # noqa
| ^^^^^^ PGH004
2 | x = 1 # NOQA:F401,W203
3 | # noqa
|
PGH004_0.py:3:1: PGH004 Use specific rule codes when using `noqa`
|
1 | x = 1 # noqa
2 | x = 1 # NOQA:F401,W203
3 | # noqa
| ^^^^^^ PGH004
4 | # NOQA
5 | # noqa:F401
|
PGH004_0.py:4:1: PGH004 Use specific rule codes when using `noqa`
|
2 | x = 1 # NOQA:F401,W203
3 | # noqa
4 | # NOQA
| ^^^^^^ PGH004
5 | # noqa:F401
6 | # noqa:F401,W203
|
PGH004_0.py:20:8: PGH004 [*] Use a colon when specifying `noqa` rule codes
|
19 | # PGH004
20 | x = 2 # noqa X100
| ^^^^^^^ PGH004
21 |
22 | # PGH004
|
= help: Add missing colon
ℹ Unsafe fix
17 17 | x = 2 # noqa:X100
18 18 |
19 19 | # PGH004
20 |-x = 2 # noqa X100
20 |+x = 2 # noqa: X100
21 21 |
22 22 | # PGH004
23 23 | x = 2 # noqa X100, X200
PGH004_0.py:23:8: PGH004 [*] Use a colon when specifying `noqa` rule codes
|
22 | # PGH004
23 | x = 2 # noqa X100, X200
| ^^^^^^^ PGH004
24 |
25 | # PGH004
|
= help: Add missing colon
ℹ Unsafe fix
20 20 | x = 2 # noqa X100
21 21 |
22 22 | # PGH004
23 |-x = 2 # noqa X100, X200
23 |+x = 2 # noqa: X100, X200
24 24 |
25 25 | # PGH004
26 26 | x = 2 # noqa : X300
PGH004_0.py:26:8: PGH004 [*] Do not add spaces between `noqa` and its colon
|
25 | # PGH004
26 | x = 2 # noqa : X300
| ^^^^^^^ PGH004
27 |
28 | # PGH004
|
= help: Remove space(s) before colon
ℹ Unsafe fix
23 23 | x = 2 # noqa X100, X200
24 24 |
25 25 | # PGH004
26 |-x = 2 # noqa : X300
26 |+x = 2 # noqa: X300
27 27 |
28 28 | # PGH004
29 29 | x = 2 # noqa : X400
PGH004_0.py:29:8: PGH004 [*] Do not add spaces between `noqa` and its colon
|
28 | # PGH004
29 | x = 2 # noqa : X400
| ^^^^^^^^ PGH004
30 |
31 | # PGH004
|
= help: Remove space(s) before colon
ℹ Unsafe fix
26 26 | x = 2 # noqa : X300
27 27 |
28 28 | # PGH004
29 |-x = 2 # noqa : X400
29 |+x = 2 # noqa: X400
30 30 |
31 31 | # PGH004
32 32 | x = 2 # noqa :X500
PGH004_0.py:32:8: PGH004 [*] Do not add spaces between `noqa` and its colon
|
31 | # PGH004
32 | x = 2 # noqa :X500
| ^^^^^^^ PGH004
|
= help: Remove space(s) before colon
ℹ Unsafe fix
29 29 | x = 2 # noqa : X400
30 30 |
31 31 | # PGH004
32 |-x = 2 # noqa :X500
32 |+x = 2 # noqa:X500