Skip to content

Commit dfc5bd1

Browse files
Replace black with ruff format (#202)
* Replace black with ruff format * Fix pre-commit-config formatting --------- Co-authored-by: Jarrod Millman <[email protected]>
1 parent 546d014 commit dfc5bd1

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,18 @@ repos:
2525
files: \.(css|html|md|yml|yaml|toml)
2626
args: [--prose-wrap=preserve]
2727

28-
- repo: https://github.com/psf/black
29-
rev: 3702ba224ecffbcec30af640c149f231d90aebdb # frozen: 24.4.2
28+
- repo: https://github.com/astral-sh/ruff-pre-commit
29+
rev: f8a3f8c471fb698229face5ed7640a64900b781e # frozen: v0.4.4
3030
hooks:
31-
- id: black
31+
- id: ruff
32+
args: [--fix, --exit-non-zero-on-fix]
33+
- id: ruff-format
3234

3335
- repo: https://github.com/adamchainz/blacken-docs
3436
rev: 960ead214cd1184149d366c6d27ca6c369ce46b6 # frozen: 1.16.0
3537
hooks:
3638
- id: blacken-docs
3739

38-
- repo: https://github.com/astral-sh/ruff-pre-commit
39-
rev: 596470fba20d04adc68ec7903ff69a12e5e1a8d3 # frozen: v0.4.2
40-
hooks:
41-
- id: ruff
42-
args: [--fix, --exit-non-zero-on-fix]
43-
4440
- repo: https://github.com/pre-commit/mirrors-mypy
4541
rev: e5ea6670624c24f8321f6328ef3176dbba76db46 # frozen: v1.10.0
4642
hooks:

0 commit comments

Comments
 (0)