Skip to content

Commit 6169cba

Browse files
CI/STYLE: Add auto-fix to ruff (#51894)
* CI/STYLE: Add auto-fix to ruff * add --exit-non-zero-on-fix * use fix, not fix-only --------- Co-authored-by: Marco Edward Gorelli <[email protected]>
1 parent 2c996a6 commit 6169cba

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ repos:
3131
rev: v0.0.253
3232
hooks:
3333
- id: ruff
34+
args: [--exit-non-zero-on-fix]
3435
- repo: https://github.com/jendrikseipp/vulture
3536
rev: 'v2.7'
3637
hooks:

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ exclude = '''
197197
line-length = 88
198198
update-check = false
199199
target-version = "py38"
200+
fix = true
201+
unfixable = ["E711"]
200202

201203
select = [
202204
# pyflakes

0 commit comments

Comments
 (0)