-
Notifications
You must be signed in to change notification settings - Fork 305
chore: update some parts of the pre-commit #1093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Henry Schreiner <[email protected]>
| - repo: https://github.com/pre-commit/mirrors-prettier | ||
| rev: "v4.0.0-alpha.8" | ||
| - repo: https://github.com/rbubley/mirrors-prettier | ||
| rev: "v3.7.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pre-commit mirror was shutdown; this is a maintained replacement.
| rev: v0.14.0 | ||
| hooks: | ||
| - id: ruff-check | ||
| types_or: [python, jupyter] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now the default (along with .pyi), jupyter was added a while ago.
| rev: "2025.10.01" | ||
| hooks: | ||
| - id: sp-repo-review | ||
| additional_dependencies: ["repo-review[cli]"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only needed if you add extra dependencies.
| args: ["--install-types", "--non-interactive"] | ||
| args: [] | ||
| additional_dependencies: | ||
| ["traitlets>=5.13", "ipykernel>=6.26", "jupyter_core>=5.3.2"] | ||
| - traitlets>=5.13 | ||
| - ipykernel>=6.26 | ||
| - jupyter_core>=5.3.2 | ||
| - types-pexpect | ||
| - types-paramiko | ||
| - types-netifaces | ||
| - types-psutil | ||
| - types-python-dateutil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This enables prek to work, since it doesn't have pip installed, and mypy assumes pip is available to install things. And it's faster.
See #1064 (will conflict a little with that one).
This also works properly with
prek, a faster Rust pre-commit tool (no pip present for mypy install types).