Skip to content

Commit

Permalink
Enable ruff auto-fixing in pre-commit (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin authored Jul 13, 2023
1 parent a8b4f07 commit 4cdc989
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ repos:
- id: pyupgrade
args: [--py38-plus]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.277
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

# Last modifier: Coding Standard
- repo: https://github.com/psf/black
rev: 23.3.0
Expand Down Expand Up @@ -92,8 +98,3 @@ repos:
- id: debug-statements
- id: check-builtin-literals
- id: check-docstring-first

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.277
hooks:
- id: ruff

0 comments on commit 4cdc989

Please sign in to comment.