From 055857c318543f557bf2a6cbc08e26c25a81140b Mon Sep 17 00:00:00 2001 From: Avasam Date: Fri, 22 Nov 2024 16:58:32 -0500 Subject: [PATCH] Clear up `tool.ruff.lint.isort.extra-standard-library` (#13070) Clear up extra-standard-library --- pyproject.toml | 48 ++++-------------------------------------------- 1 file changed, 4 insertions(+), 44 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 46014bcd2..b1d3f4b65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -115,54 +115,14 @@ ignore = [ split-on-trailing-comma = false combine-as-imports = true extra-standard-library = [ + # Group these with stdlib "_typeshed", "typing_extensions", - # Extra modules not recognized by Ruff/isort - "_ast", - "_bisect", - "_bootlocale", - "_codecs", - "_collections_abc", - "_compat_pickle", - "_compression", - "_csv", - "_ctypes", - "_curses", - "_decimal", - "_dummy_thread", - "_dummy_threading", - "_heapq", - "_imp", - "_json", - "_locale", - "_lsprof", - "_markupbase", - "_msi", - "_operator", - "_osx_support", - "_posixsubprocess", - "_py_abc", - "_pydecimal", - "_random", - "_sitebuiltins", - "_socket", - "_sqlite3", - "_ssl", - "_stat", - "_thread", - "_threading_local", - "_tkinter", - "_tracemalloc", - "_warnings", - "_weakref", - "_weakrefset", - "_winapi", - "genericpath", - "opcode", - "pyexpat", + # Extra modules not recognized by Ruff + # Added in Python 3.9 "zoneinfo", ] -known-first-party = ["ts_utils", "_utils"] +known-first-party = ["_utils", "ts_utils"] [tool.typeshed] oldest_supported_python = "3.8"