Skip to content

Commit 635b226

Browse files
committed
style: pre-commit run -a
1 parent b1e5b8b commit 635b226

39 files changed

+99
-90
lines changed

bin/bump_version.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
#!/usr/bin/env python3
22

3-
import click
4-
from pathlib import Path
3+
import glob
54
import os
6-
import cibuildwheel
7-
from packaging.version import Version, InvalidVersion
85
import subprocess
9-
import glob
106
import urllib.parse
7+
from pathlib import Path
8+
9+
import click
10+
from packaging.version import InvalidVersion, Version
11+
12+
import cibuildwheel
1113

1214
config = [
1315
# file path, version find/replace format

bin/make_dependency_update_pr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env python3
22

33
import os
4+
import textwrap
45
import time
56
from pathlib import Path
67
from subprocess import run
78

89
import click
9-
import textwrap
1010

1111

1212
def shell(cmd, **kwargs):

bin/projects.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@
1111

1212
import builtins
1313
import functools
14+
import urllib.request
15+
import xml.dom.minidom
1416
from datetime import datetime
1517
from io import StringIO
16-
from typing import Dict, Any, List, Optional, TextIO
18+
from pathlib import Path
19+
from typing import Any, Dict, List, Optional, TextIO
1720

1821
import click
1922
import yaml
2023
from github import Github
21-
import urllib.request
22-
import xml.dom.minidom
23-
from pathlib import Path
24-
2524

2625
ICONS = (
2726
"appveyor",

bin/run_example_ci_configs.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
#!/usr/bin/env python3
22

33
import os
4-
from pathlib import Path
54
import shutil
6-
from subprocess import run
75
import sys
86
import textwrap
97
import time
10-
import click
11-
from glob import glob
128
from collections import namedtuple
9+
from glob import glob
10+
from pathlib import Path
11+
from subprocess import run
1312
from urllib.parse import quote
1413

14+
import click
15+
1516

1617
def shell(cmd, **kwargs):
1718
return run([cmd], shell=True, **kwargs)

bin/sample_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env python3
22

3+
import argparse
34
import os
45
import subprocess
56
import sys
6-
import argparse
77
import tempfile
88
from pathlib import Path
99

cibuildwheel/__main__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@
55
import traceback
66
from configparser import ConfigParser
77
from pathlib import Path
8-
98
from typing import Any, Dict, List, Optional, Set, overload
109

1110
import cibuildwheel
1211
import cibuildwheel.linux
1312
import cibuildwheel.macos
1413
import cibuildwheel.windows
15-
from cibuildwheel.environment import (
16-
EnvironmentParseError,
17-
parse_environment,
18-
)
14+
from cibuildwheel.environment import EnvironmentParseError, parse_environment
1915
from cibuildwheel.util import (
2016
Architecture,
2117
BuildOptions,

cibuildwheel/docker_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import sys
77
import uuid
88
from pathlib import Path, PurePath
9-
from typing import cast, IO, Dict, List, Optional, Sequence, Type
109
from types import TracebackType
10+
from typing import IO, Dict, List, Optional, Sequence, Type, cast
1111

1212
from .typing import PathOrStr, PopenBytes
1313

cibuildwheel/environment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import bashlex
2-
31
from typing import Dict, List, Mapping, Optional
42

3+
import bashlex
4+
55
from . import bashlex_eval
66

77

cibuildwheel/linux.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@
66

77
from .docker_container import DockerContainer
88
from .logger import log
9+
from .typing import PathOrStr
910
from .util import (
10-
Architecture, BuildOptions, BuildSelector, NonPlatformWheelError,
11-
allowed_architectures_check, get_build_verbosity_extra_flags, prepare_command,
11+
Architecture,
12+
BuildOptions,
13+
BuildSelector,
14+
NonPlatformWheelError,
15+
allowed_architectures_check,
16+
get_build_verbosity_extra_flags,
17+
prepare_command,
1218
)
13-
from .typing import PathOrStr
1419

1520

1621
class PythonConfiguration(NamedTuple):

cibuildwheel/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import re
44
import sys
55
import time
6-
from typing import Optional, Union, AnyStr, IO
6+
from typing import IO, AnyStr, Optional, Union
77

88
from cibuildwheel.util import CIProvider, detect_ci_provider
99

0 commit comments

Comments
 (0)