Skip to content

Commit 909b863

Browse files
committed
substitute pyupgrade and isort with ruff
1 parent 80a6203 commit 909b863

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ repos:
1919
hooks:
2020
- id: ruff
2121

22-
- repo: https://github.com/pycqa/isort
23-
rev: 5.12.0
24-
hooks:
25-
- id: isort
26-
additional_dependencies: [toml]
27-
args: ["--profile", "black", "--filter-files"]
28-
2922
- repo: https://github.com/psf/black
3023
rev: 23.1.0
3124
hooks:
@@ -48,10 +41,3 @@ repos:
4841
.*\.csv |
4942
.*\.json |
5043
)$
51-
52-
- repo: https://github.com/asottile/pyupgrade
53-
rev: v3.3.1
54-
hooks:
55-
- id: pyupgrade
56-
args:
57-
- --py36-plus

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ color = true
1919
ignore_missing_imports = true
2020

2121
[tool.ruff]
22-
target-version = "py310"
22+
select = [
23+
"F", # flakes
24+
"I", # import sorting
25+
"U", # upgrade
26+
]
27+
target-version = "py37"
2328
line-length = 120
2429

2530
[tool.ruff.per-file-ignores]

0 commit comments

Comments
 (0)