Skip to content

Commit 0fa40d8

Browse files
author
MarcoGorelli
committed
update to .216, set target version
1 parent d077ec8 commit 0fa40d8

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ci:
1616
autofix_prs: false
1717
repos:
1818
- repo: https://github.com/charliermarsh/ruff-pre-commit
19-
rev: v0.0.206
19+
rev: v0.0.216
2020
hooks:
2121
- id: ruff
2222
- repo: https://github.com/MarcoGorelli/absolufy-imports

pyproject.toml

+8-1
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,23 @@ exclude = '''
186186

187187
[tool.ruff]
188188
line-length = 88
189+
update-check = false
190+
target-version = "py38"
189191

190192
select = [
191193
# pyflakes
192194
"F",
193195
# pycodestyle
194196
"E",
195197
"W",
198+
# flake8-2020
199+
"YTT",
196200
# flake8-bugbear
197201
"B",
202+
# flake8-quotes
203+
"Q",
204+
# pylint
205+
"PLE", "PLR", "PLW",
198206
]
199207

200208
ignore = [
@@ -239,7 +247,6 @@ ignore = [
239247
]
240248

241249
exclude = [
242-
"*.pyi",
243250
"doc/sphinxext/*.py",
244251
"doc/build/*.py",
245252
"doc/temp/*.py",

scripts/no_bool_in_generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
def visit(tree: ast.Module) -> dict[int, list[int]]:
22-
"Step through tree, recording when nodes are in annotations."
22+
"""Step through tree, recording when nodes are in annotations."""
2323
in_annotation = False
2424
nodes: list[tuple[bool, ast.AST]] = [(in_annotation, tree)]
2525
to_replace = collections.defaultdict(list)

0 commit comments

Comments
 (0)