Skip to content

Commit dac83ab

Browse files
chore: update pre-commit hooks (#21)
* 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 <steven.silvester@ieee.org>
1 parent 205b8f3 commit dac83ab

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
additional_dependencies: ["traitlets>=5.13"]
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
@@ -59,7 +59,10 @@ test = "pre-commit run --all-files --hook-stage manual mypy"
5959
dependencies = ["pre-commit"]
6060
detached = true
6161
[tool.hatch.envs.lint.scripts]
62-
build = ["pre-commit run --all-files ruff"]
62+
build = [
63+
"pre-commit run --all-files ruff",
64+
"pre-commit run --all-files ruff-format"
65+
]
6366

6467
[tool.pytest.ini_options]
6568
minversion = "6.0"
@@ -81,7 +84,6 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
8184
warn_unreachable = true
8285

8386
[tool.ruff]
84-
target-version = "py38"
8587
line-length = 100
8688

8789
[tool.ruff.lint]

0 commit comments

Comments
 (0)