Skip to content

Commit 055857c

Browse files
authored
Clear up tool.ruff.lint.isort.extra-standard-library (#13070)
Clear up extra-standard-library
1 parent e1c74f0 commit 055857c

File tree

1 file changed

+4
-44
lines changed

1 file changed

+4
-44
lines changed

pyproject.toml

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -115,54 +115,14 @@ ignore = [
115115
split-on-trailing-comma = false
116116
combine-as-imports = true
117117
extra-standard-library = [
118+
# Group these with stdlib
118119
"_typeshed",
119120
"typing_extensions",
120-
# Extra modules not recognized by Ruff/isort
121-
"_ast",
122-
"_bisect",
123-
"_bootlocale",
124-
"_codecs",
125-
"_collections_abc",
126-
"_compat_pickle",
127-
"_compression",
128-
"_csv",
129-
"_ctypes",
130-
"_curses",
131-
"_decimal",
132-
"_dummy_thread",
133-
"_dummy_threading",
134-
"_heapq",
135-
"_imp",
136-
"_json",
137-
"_locale",
138-
"_lsprof",
139-
"_markupbase",
140-
"_msi",
141-
"_operator",
142-
"_osx_support",
143-
"_posixsubprocess",
144-
"_py_abc",
145-
"_pydecimal",
146-
"_random",
147-
"_sitebuiltins",
148-
"_socket",
149-
"_sqlite3",
150-
"_ssl",
151-
"_stat",
152-
"_thread",
153-
"_threading_local",
154-
"_tkinter",
155-
"_tracemalloc",
156-
"_warnings",
157-
"_weakref",
158-
"_weakrefset",
159-
"_winapi",
160-
"genericpath",
161-
"opcode",
162-
"pyexpat",
121+
# Extra modules not recognized by Ruff
122+
# Added in Python 3.9
163123
"zoneinfo",
164124
]
165-
known-first-party = ["ts_utils", "_utils"]
125+
known-first-party = ["_utils", "ts_utils"]
166126

167127
[tool.typeshed]
168128
oldest_supported_python = "3.8"

0 commit comments

Comments
 (0)