Skip to content

Commit e0e42e1

Browse files
chore: update pre-commit hooks (#65)
* 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 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- 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 deaf46f commit e0e42e1

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

@@ -71,11 +71,13 @@ repos:
7171
- id: rst-inline-touching-normal
7272

7373
- repo: https://github.com/astral-sh/ruff-pre-commit
74-
rev: v0.1.3
74+
rev: v0.1.5
7575
hooks:
7676
- id: ruff
77+
types_or: [python, jupyter]
7778
args: ["--fix", "--show-fixes"]
7879
- id: ruff-format
80+
types_or: [python, jupyter]
7981

8082
- repo: https://github.com/scientific-python/cookie
8183
rev: "2023.10.27"

pyproject.toml

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

104107
[tool.jupyter-releaser.options]
105108
post-version-spec = "dev"
@@ -152,7 +155,6 @@ disable_error_code = ["no-untyped-def"]
152155
warn_unreachable = true
153156

154157
[tool.ruff]
155-
target-version = "py38"
156158
line-length = 100
157159

158160
[tool.ruff.lint]

0 commit comments

Comments
 (0)