Skip to content

Commit 440e18c

Browse files
authored
chore: minor cleanup (#1475)
1 parent 063161f commit 440e18c

File tree

4 files changed

+8
-20
lines changed

4 files changed

+8
-20
lines changed

.pre-commit-config.yaml

+2-4
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,14 @@ repos:
4646
- tomli_w
4747
- types-certifi
4848
- types-click
49-
- types-dataclasses
5049
- types-jinja2
5150
- types-pyyaml
5251
- types-requests
5352
- bracex
54-
- dataclasses
5553
- id: mypy
56-
name: mypy 3.10
54+
name: mypy 3.11
5755
exclude: ^cibuildwheel/resources/.*py$
58-
args: ["--python-version=3.10"]
56+
args: ["--python-version=3.11"]
5957
additional_dependencies: *mypy-dependencies
6058

6159
- repo: https://github.com/shellcheck-py/shellcheck-py

cibuildwheel/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ def build(self, options: Options, tmp_path: Path) -> None:
256256
...
257257

258258

259+
# pylint: disable-next=inconsistent-return-statements
259260
def get_platform_module(platform: PlatformName) -> PlatformModule:
260261
if platform == "linux":
261262
return cibuildwheel.linux

pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[tool.black]
99
line-length = 100
10-
target-version = ['py37', 'py38', 'py39', 'py310']
10+
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
1111

1212

1313
[tool.pytest.ini_options]
@@ -83,10 +83,10 @@ ignore = [
8383
]
8484

8585
[tool.pylint]
86-
master.py-version = "3.7"
87-
master.jobs = "0"
88-
master.fail-on = ["E", "F"]
89-
master.fail-under = "9.8"
86+
py-version = "3.7"
87+
jobs = "0"
88+
fail-on = ["E", "F"]
89+
fail-under = "9.8"
9090
reports.output-format = "colorized"
9191
messages_control.enable = [
9292
"useless-suppression",

setup.py

-11
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,9 @@
2727
"rich>=9.6",
2828
"packaging>=21.0",
2929
],
30-
"mypy": [
31-
"mypy>=0.901",
32-
"types-jinja2",
33-
"types-certifi",
34-
"types-toml",
35-
"types-jinja2",
36-
"types-pyyaml",
37-
"types-click",
38-
"types-requests",
39-
],
4030
}
4131

4232
extras["dev"] = [
43-
*extras["mypy"],
4433
*extras["test"],
4534
*extras["bin"],
4635
]

0 commit comments

Comments
 (0)