Skip to content

Commit 6921356

Browse files
chore: update pre-commit hooks (#374)
* chore: update pre-commit hooks updates: - [github.com/python-jsonschema/check-jsonschema: 0.27.0 → 0.27.1](python-jsonschema/check-jsonschema@0.27.0...0.27.1) - [github.com/astral-sh/ruff-pre-commit: v0.1.3 → v0.1.4](astral-sh/ruff-pre-commit@v0.1.3...v0.1.4) * update ruff config --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester <[email protected]>
1 parent 82f3e2a commit 6921356

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
- id: trailing-whitespace
2222

2323
- repo: https://github.com/python-jsonschema/check-jsonschema
24-
rev: 0.27.0
24+
rev: 0.27.1
2525
hooks:
2626
- id: check-github-workflows
2727

@@ -67,11 +67,13 @@ repos:
6767
- id: rst-inline-touching-normal
6868

6969
- repo: https://github.com/astral-sh/ruff-pre-commit
70-
rev: v0.1.3
70+
rev: v0.1.5
7171
hooks:
7272
- id: ruff
73+
types_or: [python, jupyter]
7374
args: ["--fix", "--show-fixes"]
7475
- id: ruff-format
76+
types_or: [python, jupyter]
7577

7678
- repo: https://github.com/scientific-python/cookie
7779
rev: "2023.10.27"

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ test = "pre-commit run --all-files --hook-stage manual mypy"
9797
dependencies = ["pre-commit"]
9898
detached = true
9999
[tool.hatch.envs.lint.scripts]
100-
build = ["pre-commit run --all-files ruff"]
100+
build = [
101+
"pre-commit run --all-files ruff",
102+
"pre-commit run --all-files ruff-format"
103+
]
101104

102105
[tool.mypy]
103106
files = "jupyter_core"
@@ -145,7 +148,6 @@ exclude_lines = [
145148
]
146149

147150
[tool.ruff]
148-
target-version = "py38"
149151
line-length = 100
150152

151153
[tool.ruff.lint]

0 commit comments

Comments
 (0)