mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-26 04:46:46 +08:00
Use ruff, not pycln, for removing unused imports (#10498)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user