Skip to content

Commit af9ed69

Browse files
committed
Fix ruff config
1 parent e56a5a0 commit af9ed69

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
types: [python]
2121
- id: ruff
2222
name: ruff
23-
entry: poetry run ruff --fix
23+
entry: poetry run ruff check --fix
2424
language: system
2525
types: [ python ]
2626
- id: mypy

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ exclude = [
5757
".tox",
5858
]
5959

60+
[tool.ruff.lint]
61+
6062
select = [
6163
"A", # flake8 builtins
6264
"E", # pycodestyle error
@@ -73,14 +75,14 @@ select = [
7375
"C9", # mccabe
7476
]
7577

76-
[tool.ruff.pep8-naming]
78+
[tool.ruff.lint.pep8-naming]
7779
classmethod-decorators = [
7880
"classmethod",
7981
"validator",
8082
"root_validator",
8183
]
8284

83-
[tool.ruff.per-file-ignores]
85+
[tool.ruff.lint.per-file-ignores]
8486
"*/__init__.py" = ["F401"]
8587

8688
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)