Skip to content

Commit 5085e7a

Browse files
Format code with ruff format instead of black (#22)
1 parent 55c0aa1 commit 5085e7a

1 file changed

Lines changed: 6 additions & 18 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: '^docs/conf.py'
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v4.5.0
66
hooks:
77
- id: trailing-whitespace
88
- id: check-added-large-files
@@ -17,22 +17,10 @@ repos:
1717
- id: mixed-line-ending
1818
args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
1919

20-
- repo: https://github.com/psf/black
21-
rev: 23.1.0
22-
hooks:
23-
- id: black
24-
language_version: python3
25-
26-
## If like to embrace black styles even in the docs:
27-
# - repo: https://github.com/asottile/blacken-docs
28-
# rev: v1.13.0
29-
# hooks:
30-
# - id: blacken-docs
31-
# additional_dependencies: [black]
32-
33-
- repo: https://github.com/charliermarsh/ruff-pre-commit
34-
rev: v0.0.261
20+
- repo: https://github.com/astral-sh/ruff-pre-commit
21+
rev: v0.1.3
3522
hooks:
23+
- id: ruff-format
3624
- id: ruff
3725
additional_dependencies:
3826
- bleak
@@ -46,12 +34,12 @@ repos:
4634
args: [--verbose, --omit-covered-files, --fail-under=100]
4735

4836
- repo: https://github.com/codespell-project/codespell
49-
rev: v2.2.2
37+
rev: v2.2.6
5038
hooks:
5139
- id: codespell
5240

5341
- repo: https://github.com/pre-commit/mirrors-mypy
54-
rev: v0.991
42+
rev: v1.6.1
5543
hooks:
5644
- id: mypy
5745
entry: env MYPYPATH=src mypy

0 commit comments

Comments
 (0)