Skip to content

Commit

Permalink
Switched from black to ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Jan 8, 2024
1 parent 7b73801 commit f5f2ce9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
10 changes: 3 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7
rev: v0.1.11
hooks:
- id: ruff
args: [--fix, --show-fixes]

- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: ["pytest"]
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,17 @@ tornado = "asphalt.templating.renderers.tornado:TornadoRenderer"
version_scheme = "post-release"
local_scheme = "dirty-tag"

[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
"E", "F", "W", # default flake-8
"ASYNC", # flake8-async
"E", "F", "W", # default Flake8
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"RUF100", # unused noqa (yesqa)
"UP", # pyupgrade
]
target-version = "py37"

[tool.ruff.isort]
known-first-party = ["asphalt.templating"]
Expand Down

0 comments on commit f5f2ce9

Please sign in to comment.