mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Configure ruff as an auto-formatter
This commit is contained in:
parent
cce8fef8de
commit
c19802e4d8
2 changed files with 2 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue