You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
π Template: switch to Ruff hook from repo for pre-commit
Use the Ruff pre-commit hook from the astral repository, instead of a `local` repo
relying on Hatch. Hatch uses Ruff under the hood anyways, and we don't want contributors
to have to install Hatch. Moreover, using a locally installed Hatch instance has shown
to not always be robust or deterministic in the past, especially in CI.
Some of the `ignore` rules might not make sense at this point, since Ruff does not
`select` them by default. But we keep them and their rationale for now, since we may
introduce their classifier in the future.
`ruff check --fix` can change code semantics/structure (e.g., remove unused imports,
reorder/simplify, apply pyupgrade-like fixes). These edits often need reformatting
afterwards. Hence, we switch the order of the pre-commit to run the linter first.
0 commit comments