Skip to content

Commit

Permalink
black → ruff format (#3242)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Dec 11, 2023
1 parent 401b23b commit 2fd39d0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,14 @@ repos:
- -d
- '{extends: relaxed, rules: {line-length: {max: 90}}}'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.1.7
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
- id: autoflake
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
Expand Down
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,21 @@ extend-ignore = [
"ANN101",
"B904",
"PLW2901",
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
]
line-length = 88
select = [
Expand All @@ -127,6 +142,7 @@ select = [
"PLW",
"S",
"U",
"UP",
"W",
"YTT",
]
Expand Down

0 comments on commit 2fd39d0

Please sign in to comment.