-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🧪⌨️ Fix typing of Axes as Axis and np.ndarray[..., Axes] as Axes * 🧰🩹 Change docformatter rev to a version compatible with pre-commit 4 🧰⬆️ Update pre-commit config 🧰✨ Add taplo to pre-commit toll for toml formatting and linting * 🚇🩹 Don't run taplo lint in pre-commit CI Pre-commit-CI doesn't support reachin out to get schema and causes a DNS error See CI run: https://results.pre-commit.ci/run/github/299106891/1734109072.qfn_wrsQS6mmHWJ4LP5PzQ
- Loading branch information
Showing
13 changed files
with
196 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
ci: | ||
skip: [flake8] | ||
skip: [flake8, taplo-lint] | ||
|
||
repos: | ||
# Formatters | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-ast | ||
- id: check-builtin-literals | ||
|
@@ -16,14 +16,14 @@ repos: | |
args: [--remove] | ||
|
||
- repo: https://github.com/PyCQA/docformatter | ||
rev: v1.7.5 | ||
rev: 06907d0 | ||
hooks: | ||
- id: docformatter | ||
additional_dependencies: [tomli] | ||
args: [--in-place, --config, ./pyproject.toml] | ||
|
||
- repo: https://github.com/tox-dev/pyproject-fmt | ||
rev: "2.2.4" | ||
rev: "v2.5.0" | ||
hooks: | ||
- id: pyproject-fmt | ||
|
||
|
@@ -36,17 +36,18 @@ repos: | |
rev: v4.0.0-alpha.8 # Use the sha or tag you want to point at | ||
hooks: | ||
- id: prettier | ||
additional_dependencies: ["[email protected]"] | ||
|
||
# Notebook tools | ||
- repo: https://github.com/kynan/nbstripout | ||
rev: 0.7.1 | ||
rev: 0.8.1 | ||
hooks: | ||
- id: nbstripout | ||
args: [--drop-empty-cells] | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.6.7 | ||
rev: v0.8.3 | ||
hooks: | ||
- id: ruff | ||
name: "ruff sort imports notebooks" | ||
|
@@ -72,7 +73,7 @@ repos: | |
# Linters | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.11.2 | ||
rev: v1.13.0 | ||
hooks: | ||
- id: mypy | ||
exclude: ^docs | ||
|
@@ -88,7 +89,7 @@ repos: | |
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.6.7 | ||
rev: v0.8.3 | ||
hooks: | ||
- id: ruff | ||
name: "ruff sort imports" | ||
|
@@ -127,6 +128,12 @@ repos: | |
args: ["--ignore-words-list=doas"] | ||
|
||
- repo: https://github.com/rhysd/actionlint | ||
rev: "v1.7.2" | ||
rev: "v1.7.4" | ||
hooks: | ||
- id: actionlint | ||
|
||
- repo: https://github.com/ComPWA/taplo-pre-commit | ||
rev: v0.9.3 | ||
hooks: | ||
- id: taplo-format | ||
- id: taplo-lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.