Use ruff, not pycln, for removing unused imports (#10498)

This commit is contained in:
Alex Waygood
2023-07-22 12:14:27 +01:00
committed by GitHub
parent 464b71c810
commit 2887f60196
6 changed files with 6 additions and 20 deletions

View File

@@ -78,6 +78,7 @@ exclude = [
# Only enable rules that have safe autofixes;
# only enable rules that are relevant to stubs
select = [
"F401", # Remove unused imports
"UP004", # Remove explicit `object` inheritance
"UP006", # PEP-585 autofixes
"UP007", # PEP-604 autofixes
@@ -95,9 +96,5 @@ select = [
"PYI032", # use `object`, not `Any`, as the second parameter to `__eq__`
]
[tool.pycln]
all = true
disable_all_dunder_policy = true
[tool.typeshed]
pyright_version = "1.1.318"