Skip to content

Commit

Permalink
Format code with ruff format instead of black (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvervloesem authored Oct 28, 2023
1 parent 55c0aa1 commit 5085e7a
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exclude: '^docs/conf.py'

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

- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
language_version: python3

## If like to embrace black styles even in the docs:
# - repo: https://github.com/asottile/blacken-docs
# rev: v1.13.0
# hooks:
# - id: blacken-docs
# additional_dependencies: [black]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.261
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff-format
- id: ruff
additional_dependencies:
- bleak
Expand All @@ -46,12 +34,12 @@ repos:
args: [--verbose, --omit-covered-files, --fail-under=100]

- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
rev: v2.2.6
hooks:
- id: codespell

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
rev: v1.6.1
hooks:
- id: mypy
entry: env MYPYPATH=src mypy
Expand Down

0 comments on commit 5085e7a

Please sign in to comment.