Skip to content

Commit bb9f350

Browse files
authored
Clean up ruff config (#1165)
1 parent d7a113c commit bb9f350

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@ repos:
7474
- id: rst-inline-touching-normal
7575

7676
- repo: https://github.com/astral-sh/ruff-pre-commit
77-
rev: v0.1.4
77+
rev: v0.1.5
7878
hooks:
7979
- id: ruff
80+
types_or: [python, jupyter]
8081
args: ["--fix", "--show-fixes"]
8182
- id: ruff-format
83+
types_or: [python, jupyter]
8284

8385
- repo: https://github.com/scientific-python/cookie
8486
rev: "2023.10.27"

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ test = "pre-commit run --all-files --hook-stage manual mypy"
120120
dependencies = ["pre-commit"]
121121
detached = true
122122
[tool.hatch.envs.lint.scripts]
123-
build = ["pre-commit run --all-files ruff"]
123+
build = [
124+
"pre-commit run --all-files ruff",
125+
"pre-commit run --all-files ruff-format"
126+
]
124127

125128
[tool.mypy]
126129
files = "ipykernel"
@@ -205,7 +208,6 @@ omit = [
205208
]
206209

207210
[tool.ruff]
208-
target-version = "py38"
209211
line-length = 100
210212

211213
[tool.ruff.lint]

0 commit comments

Comments
 (0)