Skip to content

Commit 9404a9b

Browse files
committed
uvx ruff check --fix
1 parent d4da589 commit 9404a9b

19 files changed

+38
-48
lines changed

dev.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os.path
44
import sys
55

6-
76
REPO_ROOT = os.path.dirname(os.path.abspath(__file__))
87
VENVS = os.path.join(REPO_ROOT, ".venvs")
98

pyperformance/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import sys
44
from importlib.metadata import distribution
55

6-
76
VERSION = (1, 11, 0)
87
__version__ = ".".join(map(str, VERSION))
98

pyperformance/_benchmark.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
__all__ = [
2-
"BenchmarkSpec",
32
"Benchmark",
3+
"BenchmarkSpec",
44
"check_name",
55
"parse_benchmark",
66
]
77

88

9-
from collections import namedtuple
109
import os
1110
import os.path
1211
import sys
12+
from collections import namedtuple
1313

1414
import pyperf
1515
from packaging.specifiers import SpecifierSet
1616

17-
from . import _utils, _benchmark_metadata
17+
from . import _benchmark_metadata, _utils
1818

1919

2020
def check_name(name):

pyperformance/_benchmark_metadata.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55

66
import os.path
77

8-
from . import _utils, _pyproject_toml
9-
from . import _benchmark
10-
8+
from . import _benchmark, _pyproject_toml, _utils
119

1210
METADATA = "pyproject.toml"
1311
DEPENDENCIES = "requirements.in"

pyperformance/_benchmark_selections.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
__all__ = [
2-
"parse_selection",
32
"iter_selections",
3+
"parse_selection",
44
]
55

66

7-
from . import _utils, _benchmark
7+
from . import _benchmark, _utils
88

99

1010
def parse_selection(selection, *, op=None):

pyperformance/_manifest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77

88
import os.path
99

10-
11-
from . import __version__, DATA_DIR
12-
from . import _benchmark, _utils
13-
10+
from . import DATA_DIR, __version__, _benchmark, _utils
1411

1512
DEFAULTS_DIR = os.path.join(DATA_DIR, "benchmarks")
1613
DEFAULT_MANIFEST = os.path.join(DEFAULTS_DIR, "MANIFEST")

pyperformance/_pip.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
import os.path
33
import sys
44

5-
from . import _utils, _pythoninfo
6-
5+
from . import _pythoninfo, _utils
76

87
GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py"
98
# pip 6 is the first version supporting environment markers

pyperformance/_pyproject_toml.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# in the PyPI "packaging" package (once it's added there).
33

44
__all__ = [
5-
"parse_person",
5+
"load_pyproject_toml",
66
"parse_classifier",
77
"parse_entry_point",
8+
"parse_person",
89
"parse_pyproject_toml",
9-
"load_pyproject_toml",
1010
]
1111

1212

@@ -26,7 +26,6 @@
2626

2727
from ._utils import check_name
2828

29-
3029
NAME_RE = re.compile("^([A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])$", re.IGNORECASE)
3130

3231

pyperformance/_pythoninfo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import sys
1010
import sysconfig
1111

12-
1312
INFO = {
1413
# sys
1514
"executable (sys)": "sys.executable",

pyperformance/_venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66
import types
77

8-
from . import _utils, _pythoninfo, _pip
8+
from . import _pip, _pythoninfo, _utils
99

1010

1111
class VenvCreationFailedError(Exception):

0 commit comments

Comments
 (0)