Configure ruff as an auto-formatter

This commit is contained in:
Hugo Osvaldo Barrera 2025-04-07 18:24:30 +02:00
parent cce8fef8de
commit c19802e4d8
2 changed files with 2 additions and 5 deletions

View file

@ -8,10 +8,6 @@ repos:
- id: check-toml
- id: check-added-large-files
- id: debug-statements
- repo: https://github.com/psf/black
rev: "24.2.0"
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.8.0"
hooks:
@ -26,6 +22,7 @@ repos:
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: local
hooks:
- id: typos-syncroniz

View file

@ -81,7 +81,7 @@ virtualenv_ and run this inside of it::
# Install development dependencies, including:
# - vdirsyncer from the repo into the virtualenv
# - stylecheckers (ruff) and code formatters (black)
# - style checks and formatting (ruff)
make install-dev
# Install git commit hook for some extra linting and checking