Update test dependencies (#11361)

This commit is contained in:
Alex Waygood
2024-02-05 00:53:21 +00:00
committed by GitHub
parent c49c84f319
commit bf58d62e74
4 changed files with 18 additions and 13 deletions
+7 -2
View File
@@ -10,7 +10,7 @@ force-exclude = ".*_pb2.pyi"
[tool.ruff]
line-length = 130
# Oldest supported Python version
target-version = "py37"
target-version = "py38"
fix = true
exclude = [
# virtual environment
@@ -22,6 +22,8 @@ exclude = [
".mypy_cache",
".pytype",
]
[tool.ruff.lint]
select = [
"FA", # flake8-future-annotations
"I", # isort
@@ -31,9 +33,12 @@ select = [
"PYI010", # function bodies must be empty
"PYI012", # class bodies must not contain `pass`
"PYI013", # non-empty class bodies must not contain `...`
"PYI016", # duplicate union member
"PYI020", # quoted annotations are always unnecessary in stubs
"PYI025", # always alias `collections.abc.Set` as `AbstractSet` when importing it
"PYI032", # use `object`, not `Any`, as the second parameter to `__eq__`
"PYI055", # multiple `type[T]` usages in a union
"PYI058", # use `Iterator` as the return type for `__iter__` methods
"UP004", # Remove explicit `object` inheritance
"UP006", # PEP-585 autofixes
"UP007", # PEP-604 autofixes
@@ -44,7 +49,7 @@ select = [
"UP039", # don't use parens after a class definition with no bases
]
[tool.ruff.isort]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
combine-as-imports = true
extra-standard-library = [