Skip to content

Commit 3b7d073

Browse files
chore: update pre-commit hooks (#996)
* 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) * clean up ruff config * [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 5ba4175 commit 3b7d073

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

@@ -66,11 +66,13 @@ repos:
6666
- id: rst-inline-touching-normal
6767

6868
- repo: https://github.com/astral-sh/ruff-pre-commit
69-
rev: v0.1.3
69+
rev: v0.1.5
7070
hooks:
7171
- id: ruff
72+
types_or: [python, jupyter]
7273
args: ["--fix", "--show-fixes"]
7374
- id: ruff-format
75+
types_or: [python, jupyter]
7476

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

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ test = "pre-commit run --all-files --hook-stage manual mypy"
107107
dependencies = ["pre-commit"]
108108
detached = true
109109
[tool.hatch.envs.lint.scripts]
110-
build = ["pre-commit run --all-files ruff"]
110+
build = [
111+
"pre-commit run --all-files ruff",
112+
"pre-commit run --all-files ruff-format"
113+
]
111114

112115
[tool.pytest.ini_options]
113116
minversion = "6.0"
@@ -167,7 +170,6 @@ warn_return_any = false
167170
warn_unreachable = true
168171

169172
[tool.ruff]
170-
target-version = "py38"
171173
line-length = 100
172174

173175
[tool.ruff.lint]

0 commit comments

Comments
 (0)