Skip to content

Commit 96e1bc4

Browse files
chore: bump pre-commit (#143)
Signed-off-by: Henry Schreiner <henryfs@princeton.edu> Co-authored-by: Edgar Ramírez Mondragón <16805946+edgarrmondragon@users.noreply.github.com>
1 parent 2dce8a7 commit 96e1bc4

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: "v5.0.0"
3+
rev: "v6.0.0"
44
hooks:
55
- id: check-added-large-files
66
- id: check-case-conflict
@@ -14,8 +14,8 @@ repos:
1414
- id: trailing-whitespace
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: "v0.9.2"
17+
rev: "v0.15.17"
1818
hooks:
19-
- id: ruff
20-
args: ["--fix", "--show-fixes"]
19+
- id: ruff-check
20+
args: ["--fix"]
2121
- id: ruff-format

‎pyproject.toml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ requires = [
5050
]
5151
build-backend = "setuptools.build_meta"
5252

53-
[tool.ruff.lint]
54-
extend-select = [
53+
[tool.ruff]
54+
show-fixes = true
55+
lint.extend-select = [
5556
"B", # flake8-bugbear
5657
"I", # isort
5758
"ARG", # flake8-unused-arguments
@@ -71,10 +72,10 @@ extend-select = [
7172
"YTT", # flake8-2020
7273
"EXE", # flake8-executable
7374
]
74-
ignore = [
75+
lint.ignore = [
7576
"PLR", # Design related pylint codes
7677
]
77-
isort.required-imports = ["from __future__ import annotations"]
78+
lint.isort.required-imports = ["from __future__ import annotations"]
7879

7980
[tool.ruff.lint.per-file-ignores]
8081
"tests/**" = ["T20"]

0 commit comments

Comments
 (0)