@@ -243,7 +243,7 @@ select = [
243
243
" PT" , # Pytest style
244
244
" PTH" , # Pathlib instead of os.path
245
245
" PYI" , # Typing
246
- " RUF100 " , # Unused noqa
246
+ " RUF " , # Miscellaneous Ruff-only lints
247
247
" SIM" , # Simplify control flow
248
248
" TC" , # Manage type checking blocks
249
249
" UP" , # Update legacy syntax
@@ -252,27 +252,18 @@ select = [
252
252
]
253
253
external = [ " PLR0917" ] # preview lint that we use
254
254
ignore = [
255
- # dict() syntax is preferrable when creating dicts for kwargs
256
- " C408" ,
257
- # E266 too many leading '#' for block comment -> Scanpy allows them for comments into sections
258
- " E262" ,
259
- # module level import not at top of file -> required to circumvent circular imports for Scanpys API
260
- " E402" ,
261
- # line too long -> we accept long comment lines; black gets rid of long code lines
262
- " E501" ,
263
- # allow I, O, l as variable names -> I is the identity matrix, i, j, k, l is reasonable indexing notation
264
- " E741" ,
265
- # We ban blank lines before docstrings instead of the opposite
266
- " D203" ,
267
- # We want multiline summaries to start on the first line, not the second
268
- " D213" ,
269
- # TODO: replace our current param docs reuse with this and remove it here:
270
- " D417" ,
271
- # Numbers like “2” aren’t that “magic”.
272
- " PLR2004" ,
273
- # `Literal["..."] | str` is useful for autocompletion
274
- " PYI051" ,
255
+ " C408" , # dict() syntax is preferrable when creating dicts for kwargs
256
+ " E262" , # E266 too many leading '#' for block comment -> Scanpy allows them for comments into sections
257
+ " E402" , # module level import not at top of file -> required to circumvent circular imports for Scanpys API
258
+ " E501" , # line too long -> we accept long comment lines; black gets rid of long code lines
259
+ " E741" , # allow I, O, l as variable names -> I is the identity matrix, i, j, k, l is reasonable indexing notation
260
+ " D203" , # We ban blank lines before docstrings instead of the opposite
261
+ " D213" , # We want multiline summaries to start on the first line, not the second
262
+ " D417" , # TODO: replace our current param docs reuse with this and remove it here:
263
+ " PLR2004" , # Numbers like “2” aren’t that “magic”.
264
+ " PYI051" , # `Literal["..."] | str` is useful for autocompletion
275
265
]
266
+ allowed-confusables = [ " ×" , " ’" , " –" , " α" ]
276
267
[tool .ruff .lint .per-file-ignores ]
277
268
# Do not assign a lambda expression, use a def
278
269
"src/scanpy/tools/_rank_genes_groups.py" = [ " E731" ]
0 commit comments