@@ -125,7 +125,6 @@ source = ["jupyter_server_terminals"]
125
125
files = " jupyter_server_terminals"
126
126
python_version = " 3.8"
127
127
strict = true
128
- show_error_codes = true
129
128
enable_error_code = [" ignore-without-code" , " redundant-expr" , " truthy-bool" ]
130
129
warn_unreachable = true
131
130
@@ -134,26 +133,34 @@ warn_unreachable = true
134
133
line-length = 100
135
134
136
135
[tool .ruff .lint ]
137
- select = [
138
- " A" , " B" , " C" , " DTZ" , " E" , " EM" , " F" , " FBT" , " I" , " ICN" , " N" ,
139
- " PLC" , " PLE" , " PLR" , " PLW" , " Q" , " RUF" , " S" , " SIM" , " T" , " TID" , " UP" ,
140
- " W" , " YTT" ,
136
+ extend-select = [
137
+ " B" , # flake8-bugbear
138
+ " I" , # isort
139
+ " C4" , # flake8-comprehensions
140
+ " EM" , # flake8-errmsg
141
+ " ICN" , # flake8-import-conventions
142
+ " G" , # flake8-logging-format
143
+ " PGH" , # pygrep-hooks
144
+ " PIE" , # flake8-pie
145
+ " PL" , # pylint
146
+ " PTH" , # flake8-use-pathlib
147
+ " PT" , # flake8-pytest-style
148
+ " RET" , # flake8-return
149
+ " RUF" , # Ruff-specific
150
+ " SIM" , # flake8-simplify
151
+ " T20" , # flake8-print
152
+ " UP" , # pyupgrade
153
+ " YTT" , # flake8-2020
154
+ " EXE" , # flake8-executable
155
+ " PYI" , # flake8-pyi
156
+ " S" , # flake8-bandit
141
157
]
142
158
ignore = [
143
- # Q000 Single quotes found but double quotes preferred
144
- " Q000" ,
145
- # FBT001 Boolean positional arg in function definition
146
- " FBT001" , " FBT002" , " FBT003" ,
147
- # E501 Line too long (158 > 100 characters)
148
- " E501" ,
149
- # SIM105 Use `contextlib.suppress(...)`
150
- " SIM105" ,
151
- # T201 `print` found
152
- " T201" ,
153
- # N802 Function name `CreateWellKnownSid` should be lowercase
154
- " N802" , " N803" ,
155
- # S101 Use of `assert` detected
156
- " S101" ,
159
+ " PLR" , # Design related pylint codes
160
+ " E501" , # Line too long (158 > 100 characters)
161
+ " SIM105" , # Use `contextlib.suppress(...)`
162
+ " T201" , # `print` found
163
+ " S101" , # Use of `assert` detected
157
164
]
158
165
unfixable = [
159
166
# Don't touch print statements
@@ -166,8 +173,8 @@ unfixable = [
166
173
# B011: Do not call assert False since python -O removes these calls
167
174
# F841 local variable 'foo' is assigned to but never used
168
175
# S101 Use of `assert` detected
169
- # PLR2004 Magic value used in comparison
170
- "tests /*" = [" B011 " , " F841 " , " S101 " , " PLR2004 " ]
176
+ "tests/*" = [ " B011 " , " F841 " ]
177
+ "docs /*" = [" PTH " ]
171
178
172
179
[tool .interrogate ]
173
180
ignore-init-module =true
@@ -180,4 +187,4 @@ fail-under=100
180
187
exclude = [" tests" , " docs" ]
181
188
182
189
[tool .repo-review ]
183
- ignore = [" PY007 " , " GH102" ]
190
+ ignore = [" GH102" ]
0 commit comments