chore: minor cleanup (#1475)
This commit is contained in:
@@ -46,16 +46,14 @@ repos:
|
|||||||
- tomli_w
|
- tomli_w
|
||||||
- types-certifi
|
- types-certifi
|
||||||
- types-click
|
- types-click
|
||||||
- types-dataclasses
|
|
||||||
- types-jinja2
|
- types-jinja2
|
||||||
- types-pyyaml
|
- types-pyyaml
|
||||||
- types-requests
|
- types-requests
|
||||||
- bracex
|
- bracex
|
||||||
- dataclasses
|
|
||||||
- id: mypy
|
- id: mypy
|
||||||
name: mypy 3.10
|
name: mypy 3.11
|
||||||
exclude: ^cibuildwheel/resources/.*py$
|
exclude: ^cibuildwheel/resources/.*py$
|
||||||
args: ["--python-version=3.10"]
|
args: ["--python-version=3.11"]
|
||||||
additional_dependencies: *mypy-dependencies
|
additional_dependencies: *mypy-dependencies
|
||||||
|
|
||||||
- repo: https://github.com/shellcheck-py/shellcheck-py
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
||||||
|
|||||||
@@ -256,6 +256,7 @@ class PlatformModule(typing.Protocol):
|
|||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable-next=inconsistent-return-statements
|
||||||
def get_platform_module(platform: PlatformName) -> PlatformModule:
|
def get_platform_module(platform: PlatformName) -> PlatformModule:
|
||||||
if platform == "linux":
|
if platform == "linux":
|
||||||
return cibuildwheel.linux
|
return cibuildwheel.linux
|
||||||
|
|||||||
+5
-5
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 100
|
line-length = 100
|
||||||
target-version = ['py37', 'py38', 'py39', 'py310']
|
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
|
||||||
|
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
@@ -83,10 +83,10 @@ ignore = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[tool.pylint]
|
[tool.pylint]
|
||||||
master.py-version = "3.7"
|
py-version = "3.7"
|
||||||
master.jobs = "0"
|
jobs = "0"
|
||||||
master.fail-on = ["E", "F"]
|
fail-on = ["E", "F"]
|
||||||
master.fail-under = "9.8"
|
fail-under = "9.8"
|
||||||
reports.output-format = "colorized"
|
reports.output-format = "colorized"
|
||||||
messages_control.enable = [
|
messages_control.enable = [
|
||||||
"useless-suppression",
|
"useless-suppression",
|
||||||
|
|||||||
@@ -27,20 +27,9 @@ extras = {
|
|||||||
"rich>=9.6",
|
"rich>=9.6",
|
||||||
"packaging>=21.0",
|
"packaging>=21.0",
|
||||||
],
|
],
|
||||||
"mypy": [
|
|
||||||
"mypy>=0.901",
|
|
||||||
"types-jinja2",
|
|
||||||
"types-certifi",
|
|
||||||
"types-toml",
|
|
||||||
"types-jinja2",
|
|
||||||
"types-pyyaml",
|
|
||||||
"types-click",
|
|
||||||
"types-requests",
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extras["dev"] = [
|
extras["dev"] = [
|
||||||
*extras["mypy"],
|
|
||||||
*extras["test"],
|
*extras["test"],
|
||||||
*extras["bin"],
|
*extras["bin"],
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user