Skip to content

Commit d4d23c6

Browse files
authored
Update ruff config (#422)
1 parent 02799a5 commit d4d23c6

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
@@ -77,11 +77,13 @@ repos:
7777
]
7878

7979
- repo: https://github.com/astral-sh/ruff-pre-commit
80-
rev: v0.1.4
80+
rev: v0.1.5
8181
hooks:
8282
- id: ruff
83+
types_or: [python, jupyter]
8384
args: ["--fix", "--show-fixes"]
8485
- id: ruff-format
86+
types_or: [python, jupyter]
8587

8688
- repo: https://github.com/scientific-python/cookie
8789
rev: "2023.10.27"

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ nowarn = "test -W default {args}"
111111
detached = true
112112
dependencies = ["pre-commit"]
113113
[tool.hatch.envs.lint.scripts]
114-
build = "pre-commit run --all-files ruff"
114+
build = [
115+
"pre-commit run --all-files ruff",
116+
"pre-commit run --all-files ruff-format"
117+
]
115118

116119
[tool.hatch.envs.typing]
117120
dependencies = [ "pre-commit"]
@@ -180,7 +183,6 @@ module = [
180183
ignore_missing_imports = true
181184

182185
[tool.ruff]
183-
target-version = "py38"
184186
line-length = 100
185187

186188
[tool.ruff.lint]

0 commit comments

Comments
 (0)