Skip to content

Commit

Permalink
Merge pull request #1 from mayty/issue/2305_new_mkstdlibs
Browse files Browse the repository at this point in the history
use `stdlibs` for stdlibs packages list
  • Loading branch information
mayty authored Dec 27, 2024
2 parents 1a90943 + b35f782 commit d49bb41
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 69 deletions.
14 changes: 12 additions & 2 deletions isort/stdlibs/py310.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

stdlib = {
"_ast",
"_thread",
"abc",
"aifc",
"antigravity",
"argparse",
"array",
"ast",
Expand Down Expand Up @@ -70,6 +70,7 @@
"ftplib",
"functools",
"gc",
"genericpath",
"getopt",
"getpass",
"gettext",
Expand Down Expand Up @@ -111,8 +112,11 @@
"netrc",
"nis",
"nntplib",
"nt",
"ntpath",
"nturl2path",
"numbers",
"opcode",
"operator",
"optparse",
"os",
Expand All @@ -136,6 +140,8 @@
"py_compile",
"pyclbr",
"pydoc",
"pydoc_data",
"pyexpat",
"queue",
"quopri",
"random",
Expand Down Expand Up @@ -182,8 +188,8 @@
"telnetlib",
"tempfile",
"termios",
"test",
"textwrap",
"this",
"threading",
"time",
"timeit",
Expand Down Expand Up @@ -214,6 +220,10 @@
"xdrlib",
"xml",
"xmlrpc",
"xx",
"xxlimited",
"xxlimited_35",
"xxsubtype",
"zipapp",
"zipfile",
"zipimport",
Expand Down
17 changes: 12 additions & 5 deletions isort/stdlibs/py311.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@

stdlib = {
"_ast",
"_thread",
"_tkinter",
"abc",
"aifc",
"antigravity",
"argparse",
"array",
"ast",
Expand Down Expand Up @@ -70,6 +69,7 @@
"ftplib",
"functools",
"gc",
"genericpath",
"getopt",
"getpass",
"gettext",
Expand Down Expand Up @@ -111,8 +111,11 @@
"netrc",
"nis",
"nntplib",
"nt",
"ntpath",
"nturl2path",
"numbers",
"opcode",
"operator",
"optparse",
"os",
Expand All @@ -136,6 +139,8 @@
"py_compile",
"pyclbr",
"pydoc",
"pydoc_data",
"pyexpat",
"queue",
"quopri",
"random",
Expand All @@ -154,7 +159,6 @@
"shutil",
"signal",
"site",
"sitecustomize",
"smtpd",
"smtplib",
"sndhdr",
Expand Down Expand Up @@ -183,8 +187,8 @@
"telnetlib",
"tempfile",
"termios",
"test",
"textwrap",
"this",
"threading",
"time",
"timeit",
Expand All @@ -203,7 +207,6 @@
"unicodedata",
"unittest",
"urllib",
"usercustomize",
"uu",
"uuid",
"venv",
Expand All @@ -217,6 +220,10 @@
"xdrlib",
"xml",
"xmlrpc",
"xx",
"xxlimited",
"xxlimited_35",
"xxsubtype",
"zipapp",
"zipfile",
"zipimport",
Expand Down
22 changes: 12 additions & 10 deletions isort/stdlibs/py312.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@

stdlib = {
"_ast",
"_thread",
"_tkinter",
"abc",
"aifc",
"antigravity",
"argparse",
"array",
"ast",
"asynchat",
"asyncio",
"asyncore",
"atexit",
"audioop",
"base64",
Expand Down Expand Up @@ -54,7 +51,6 @@
"decimal",
"difflib",
"dis",
"distutils",
"doctest",
"email",
"encodings",
Expand All @@ -70,6 +66,7 @@
"ftplib",
"functools",
"gc",
"genericpath",
"getopt",
"getpass",
"gettext",
Expand All @@ -85,7 +82,6 @@
"idlelib",
"imaplib",
"imghdr",
"imp",
"importlib",
"inspect",
"io",
Expand All @@ -111,8 +107,11 @@
"netrc",
"nis",
"nntplib",
"nt",
"ntpath",
"nturl2path",
"numbers",
"opcode",
"operator",
"optparse",
"os",
Expand All @@ -136,6 +135,8 @@
"py_compile",
"pyclbr",
"pydoc",
"pydoc_data",
"pyexpat",
"queue",
"quopri",
"random",
Expand All @@ -154,8 +155,6 @@
"shutil",
"signal",
"site",
"sitecustomize",
"smtpd",
"smtplib",
"sndhdr",
"socket",
Expand Down Expand Up @@ -183,8 +182,8 @@
"telnetlib",
"tempfile",
"termios",
"test",
"textwrap",
"this",
"threading",
"time",
"timeit",
Expand All @@ -203,7 +202,6 @@
"unicodedata",
"unittest",
"urllib",
"usercustomize",
"uu",
"uuid",
"venv",
Expand All @@ -217,6 +215,10 @@
"xdrlib",
"xml",
"xmlrpc",
"xx",
"xxlimited",
"xxlimited_35",
"xxsubtype",
"zipapp",
"zipfile",
"zipimport",
Expand Down
Loading

0 comments on commit d49bb41

Please sign in to comment.