Skip to content

Extend linter config #1241

@flying-sheep

Description

@flying-sheep

Please describe your wishes and possible alternatives to achieve the desired result.

Code      Descriptionsc PRad PR
Missing from #1117
likely bugs and design problemsscverse/scanpy#3573#1967
better list/set/dict/generator comprehensionsscverse/scanpy#3579#1964
Rules around mostly loopsscverse/scanpy#3579#1964

Disallow except:/except Exception:

scverse/scanpy#3579#1964
Misc syntax simplificationsscverse/scanpy#3573#1967
Various useful Ruff rulesscverse/scanpy#3582#1965
Traceback-friendly error messagesscverse/scanpy#3437#1825
Implicit string concatenationscverse/scanpy#3579#1964
Flow simplificationsscverse/scanpy#3258#1963
Mentioned in #1117 (more substantive changes)
very useful for a future API updatescverse/scanpy#3189#1694
very useful, but needs a lot of changesscverse/scanpy#3191#1521
Pandas vettingscverse/scanpy#4080
Docstring stylescverse/scanpy#3490
Clarifies early returns
Also:
numpy specific rules, especially to prevent legacy `np.random` APIsscverse/scanpy#4087
simplified code (e.g. ternaries instead of assignments in if/else)scverse/scanpy#3258#1963

less-known typing stuff (like float meaning int | float)

scverse/scanpy#3339#1747
A lot of helpful lints, especially to prevent complexity creepscverse/scanpy#3577#1961

snake_case, SCREAMING_SNAKE_CASE, and CamelCase

scverse/scanpy#3785

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions