@@ -243,7 +243,7 @@ select = [
243243 " PT" , # Pytest style
244244 " PTH" , # Pathlib instead of os.path
245245 " PYI" , # Typing
246- " RUF100 " , # Unused noqa
246+ " RUF " , # Miscellaneous Ruff-only lints
247247 " SIM" , # Simplify control flow
248248 " TC" , # Manage type checking blocks
249249 " UP" , # Update legacy syntax
@@ -252,27 +252,18 @@ select = [
252252]
253253external = [ " PLR0917" ] # preview lint that we use
254254ignore = [
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
275265]
266+ allowed-confusables = [ " ×" , " ’" , " –" , " α" ]
276267[tool .ruff .lint .per-file-ignores ]
277268# Do not assign a lambda expression, use a def
278269"src/scanpy/tools/_rank_genes_groups.py" = [ " E731" ]
0 commit comments