Skip to content

Commit

Permalink
pre-commit: Use ruff-format instead of black
Browse files Browse the repository at this point in the history
  • Loading branch information
wismill committed Jul 12, 2024
1 parent a4f62fc commit 809704e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
args: ['--check', '--diff', '.']
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.2.2
rev: v0.5.1
hooks:
- id: ruff
# ambiguous-variable-name (E741), line-too-long (E501)
args: ['--ignore=E741,E501', '.']
- id: ruff-format
# 88 is the black default
args: ['--line-length=88', '--check', '--diff', '.',]
# [TODO] C linter/formatter
# Note: There is an old config file for uncrustify (https://uncrustify.sourceforge.net)
# in the repo, but we may want to migrate to other modern style.
Expand Down

0 comments on commit 809704e

Please sign in to comment.