Move Ruff's fix=true up from pre-commit to pyproject

This commit is contained in:
Hugo van Kemenade 2024-04-01 20:49:47 +03:00
parent 97c6e46f34
commit 55b8f9126b
2 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,7 @@ repos:
rev: v0.3.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
args: [--exit-non-zero-on-fix]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.3.0

View File

@ -96,6 +96,9 @@ config-settings = "raqm=enable raqm=vendor fribidi=vendor imagequant=disable"
test-command = "cd {project} && .github/workflows/wheels-test.sh"
test-extras = "tests"
[tool.ruff]
fix = true
[tool.ruff.lint]
select = [
"C4", # flake8-comprehensions