Skip to content

Commit

Permalink
chore: have black run before ruff + have it autofix (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma authored Aug 9, 2023
1 parent a828d35 commit 5a9f85d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ repos:
- id: detect-private-key
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
language_version: python3.11
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.280
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
args: ["--check"]
language_version: python3.10

0 comments on commit 5a9f85d

Please sign in to comment.