chore: minor cleanup (#1475)
This commit is contained in:
@@ -46,16 +46,14 @@ repos:
|
||||
- tomli_w
|
||||
- types-certifi
|
||||
- types-click
|
||||
- types-dataclasses
|
||||
- types-jinja2
|
||||
- types-pyyaml
|
||||
- types-requests
|
||||
- bracex
|
||||
- dataclasses
|
||||
- id: mypy
|
||||
name: mypy 3.10
|
||||
name: mypy 3.11
|
||||
exclude: ^cibuildwheel/resources/.*py$
|
||||
args: ["--python-version=3.10"]
|
||||
args: ["--python-version=3.11"]
|
||||
additional_dependencies: *mypy-dependencies
|
||||
|
||||
- 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:
|
||||
if platform == "linux":
|
||||
return cibuildwheel.linux
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.black]
|
||||
line-length = 100
|
||||
target-version = ['py37', 'py38', 'py39', 'py310']
|
||||
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
|
||||
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
@@ -83,10 +83,10 @@ ignore = [
|
||||
]
|
||||
|
||||
[tool.pylint]
|
||||
master.py-version = "3.7"
|
||||
master.jobs = "0"
|
||||
master.fail-on = ["E", "F"]
|
||||
master.fail-under = "9.8"
|
||||
py-version = "3.7"
|
||||
jobs = "0"
|
||||
fail-on = ["E", "F"]
|
||||
fail-under = "9.8"
|
||||
reports.output-format = "colorized"
|
||||
messages_control.enable = [
|
||||
"useless-suppression",
|
||||
|
||||
Reference in New Issue
Block a user