Skip to content

Commit c19802e

Browse files
committed
Configure ruff as an auto-formatter
1 parent cce8fef commit c19802e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.pre-commit-config.yaml

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ repos:
88
- id: check-toml
99
- id: check-added-large-files
1010
- id: debug-statements
11-
- repo: https://github.com/psf/black
12-
rev: "24.2.0"
13-
hooks:
14-
- id: black
1511
- repo: https://github.com/pre-commit/mirrors-mypy
1612
rev: "v1.8.0"
1713
hooks:
@@ -26,6 +22,7 @@ repos:
2622
hooks:
2723
- id: ruff
2824
args: [--fix, --exit-non-zero-on-fix]
25+
- id: ruff-format
2926
- repo: local
3027
hooks:
3128
- id: typos-syncroniz

docs/contributing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ virtualenv_ and run this inside of it::
8181

8282
# Install development dependencies, including:
8383
# - vdirsyncer from the repo into the virtualenv
84-
# - stylecheckers (ruff) and code formatters (black)
84+
# - style checks and formatting (ruff)
8585
make install-dev
8686

8787
# Install git commit hook for some extra linting and checking

0 commit comments

Comments
 (0)