Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Replace black with ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Oct 25, 2023
1 parent 2aba6bf commit 07726f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@ repos:
rev: v3.0.3
hooks:
- id: prettier
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.10.1
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.2
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
hooks:
Expand Down
15 changes: 9 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
[tool.black]
line-length = 80
target-version = ["py37"]
skip-magic-trailing-comma = true
preview = true

[tool.mypy]
python_version = "3.8"
disallow_subclassing_any = false
Expand Down Expand Up @@ -32,6 +26,7 @@ ignore = [
"BLE001",
"C901",
"COM",
"CPY001",
"D100",
"D101",
"D102",
Expand All @@ -50,14 +45,17 @@ ignore = [
"D415",
"D417",
"DJ008",
"E203",
"ERA001",
"FBT002",
"PD901",
"PERF203",
"PLR0904",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR0916",
"PT012",
"RUF001",
"RUF002",
Expand All @@ -77,6 +75,7 @@ ignore = [
]
ignore-init-module-imports = true
line-length = 80
preview = true
select = ["ALL"]
target-version = "py37"

Expand All @@ -86,6 +85,10 @@ ignore-names = []
[tool.ruff.flake8-unused-arguments]
ignore-variadic-names = true

[tool.ruff.format]
line-ending = "lf"
skip-magic-trailing-comma = true

[tool.ruff.isort]
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
Expand Down

0 comments on commit 07726f6

Please sign in to comment.