Replace `Black` and `isort` with `Ruff-format`.

master
Fabio Caccamo 2023-12-11 23:51:06 +01:00
parent 13965eacf2
commit fb18a8d455
2 changed files with 2 additions and 15 deletions

View File

@ -15,21 +15,11 @@ repos:
args: ["--target-version", "3.0"] args: ["--target-version", "3.0"]
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6 rev: v0.1.7
hooks: hooks:
- id: ruff - id: ruff
args: [--fix, --exit-non-zero-on-fix] args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 rev: v4.5.0

View File

@ -84,9 +84,6 @@ exclude = '''
)/ )/
''' '''
[tool.isort]
profile = "black"
[tool.ruff] [tool.ruff]
ignore = [] ignore = []
line-length = 88 line-length = 88