mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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-toml
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
- repo: https://github.com/psf/black
|
|
||||||
rev: "24.2.0"
|
|
||||||
hooks:
|
|
||||||
- id: black
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: "v1.8.0"
|
rev: "v1.8.0"
|
||||||
hooks:
|
hooks:
|
||||||
|
|
@ -26,6 +22,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix, --exit-non-zero-on-fix]
|
args: [--fix, --exit-non-zero-on-fix]
|
||||||
|
- id: ruff-format
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: typos-syncroniz
|
- id: typos-syncroniz
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ virtualenv_ and run this inside of it::
|
||||||
|
|
||||||
# Install development dependencies, including:
|
# Install development dependencies, including:
|
||||||
# - vdirsyncer from the repo into the virtualenv
|
# - vdirsyncer from the repo into the virtualenv
|
||||||
# - stylecheckers (ruff) and code formatters (black)
|
# - style checks and formatting (ruff)
|
||||||
make install-dev
|
make install-dev
|
||||||
|
|
||||||
# Install git commit hook for some extra linting and checking
|
# Install git commit hook for some extra linting and checking
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue