Skip to content

Commit

Permalink
Use ruff formatter instead of black
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed May 23, 2024
1 parent 7c06427 commit 55acda3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4
rev: v0.4.5
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format

- repo: local
hooks:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pip install tox
tox -e style
```

Formatting tests include `black`, `flake8` and `pylint`, See `.pre-commit-config.yaml` for the
Formatting tests include `ruff` and `pylint`, See `.pre-commit-config.yaml` for the
complete steps.

[pre-commit](https://pre-commit.com/) can also provide git hooks to run on every commit
Expand Down

0 comments on commit 55acda3

Please sign in to comment.