Skip to content

Commit 133da2f

Browse files
radoeringabn
authored andcommitted
use ruff format
1 parent e09a535 commit 133da2f

File tree

3 files changed

+1426
-1330
lines changed

3 files changed

+1426
-1330
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,8 @@ repos:
1919
- id: debug-statements
2020
- id: check-docstring-first
2121

22-
- repo: https://github.com/psf/black-pre-commit-mirror
23-
rev: 24.1.1
24-
hooks:
25-
- id: black
26-
2722
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.2.1
23+
rev: v0.3.2
2924
hooks:
3025
- id: ruff
26+
- id: ruff-format

pyproject.toml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,18 @@ export = "poetry_plugin_export.plugins:ExportApplicationPlugin"
4444

4545
[tool.ruff]
4646
fix = true
47+
target-version = "py38"
48+
line-length = 88
49+
extend-exclude = [
50+
"docs/*",
51+
# External to the project's coding standards
52+
"tests/**/fixtures/*",
53+
]
54+
55+
[tool.ruff.lint]
4756
unfixable = [
4857
"ERA", # do not autoremove commented out code
4958
]
50-
target-version = "py38"
51-
line-length = 88
5259
extend-select = [
5360
"B", # flake8-bugbear
5461
"C4", # flake8-comprehensions
@@ -63,27 +70,18 @@ extend-select = [
6370
"TID", # flake8-tidy-imports
6471
"UP", # pyupgrade
6572
]
66-
extend-exclude = [
67-
"docs/*",
68-
# External to the project's coding standards
69-
"tests/**/fixtures/*",
70-
]
7173

72-
[tool.ruff.flake8-tidy-imports]
74+
[tool.ruff.lint.flake8-tidy-imports]
7375
ban-relative-imports = "all"
7476

75-
[tool.ruff.isort]
77+
[tool.ruff.lint.isort]
7678
force-single-line = true
7779
lines-between-types = 1
7880
lines-after-imports = 2
7981
known-first-party = ["poetry_plugin_export"]
8082
required-imports = ["from __future__ import annotations"]
8183

8284

83-
[tool.black]
84-
target-version = ['py38']
85-
preview = true
86-
8785
[tool.mypy]
8886
namespace_packages = true
8987
show_error_codes = true

0 commit comments

Comments
 (0)