-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Labels
Description
PRs
Description
Just collecting some small things that we could change in our config to do less 🙂
Settings
Less # noqa: ...
Mostly for conventions outside of our control like F, Window
- https://docs.astral.sh/ruff/settings/#lint_pep8-naming_extend-ignore-names
- https://docs.astral.sh/ruff/settings/#lint_flake8-builtins_allowed-modules
- https://docs.astral.sh/ruff/settings/#lint_flake8-builtins_ignorelist
Rules
Disable
- https://docs.astral.sh/ruff/rules/snake-case-type-alias/
Lines 348 to 349 in b9bdc34
_2DArray: TypeAlias = "_NDArray[tuple[int, int]]" # noqa: PYI042, PYI047 _AnyDArray: TypeAlias = "_NDArray[tuple[int, ...]]" # noqa: PYI047
Enable autofix
- https://docs.astral.sh/ruff/rules/raw-string-in-exception/
- Lets you write the error message in the exception, then fixes it by moving it to
msg
- Lets you write the error message in the exception, then fixes it by moving it to