Skip to content

Commit 1b43166

Browse files
committed
Group setup.py imports
While setuptools has official status, it is not actually part of the standard library (and since Python 3.12 cannot be treated as if it is, since it is not installed by default), so its imports belong in the second group rather than the first, per PEP-8.
1 parent e880c33 commit 1b43166

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: setup.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/usr/bin/env python
22

3+
import os
4+
import sys
35
from typing import Sequence
6+
47
from setuptools import setup, find_packages
58
from setuptools.command.build_py import build_py as _build_py
69
from setuptools.command.sdist import sdist as _sdist
7-
import os
8-
import sys
10+
911

1012
with open(os.path.join(os.path.dirname(__file__), "VERSION"), encoding="utf-8") as ver_file:
1113
VERSION = ver_file.readline().strip()

0 commit comments

Comments
 (0)