Skip to content

Commit 9685f64

Browse files
authored
Update ruff and config (#12390)
1 parent fd77ebf commit 9685f64

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ repos:
2222
- id: black
2323

2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.0.292
25+
rev: v0.1.4
2626
hooks:
2727
- id: ruff
28+
args: [--fix, --exit-non-zero-on-fix]
2829

2930
- repo: https://github.com/pre-commit/mirrors-mypy
3031
rev: v0.961

news/12390.trivial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update ruff versions and config for dev

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ ignore = [
8484
"B020",
8585
"B904", # Ruff enables opinionated warnings by default
8686
"B905", # Ruff enables opinionated warnings by default
87-
"G202",
8887
]
88+
target-version = "py37"
8989
line-length = 88
9090
select = [
9191
"ASYNC",

0 commit comments

Comments
 (0)