Files
cibuildwheel/pyproject.toml
T

123 lines
2.4 KiB
TOML
Raw Normal View History

2020-12-23 16:31:42 -05:00
[build-system]
requires = [
"setuptools>=42",
]
build-backend = "setuptools.build_meta"
2021-06-12 11:40:33 -04:00
[tool.black]
line-length = 100
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
2021-06-12 11:40:33 -04:00
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
2021-06-12 11:40:33 -04:00
junit_family = "xunit2"
testpaths = [
"test",
"unit_test",
]
xfail_strict = true
filterwarnings = ["error"]
log_cli_level = "info"
2021-06-12 11:40:33 -04:00
[tool.mypy]
python_version = 3.7
files = [
"cibuildwheel/*.py",
"test/**/*.py",
"unit_test/**/*.py",
"bin/*.py",
"noxfile.py",
2021-06-12 11:40:33 -04:00
]
warn_unused_configs = true
show_error_codes = true
2021-06-12 11:40:33 -04:00
warn_redundant_casts = true
no_implicit_reexport = true
strict_equality = true
2021-06-12 14:02:06 -04:00
warn_unused_ignores = true
check_untyped_defs = true
disallow_subclassing_any = true
disallow_any_generics = true
warn_return_any = true
no_implicit_optional = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true
2021-06-12 14:02:06 -04:00
[[tool.mypy.overrides]]
module = "cibuildwheel.*"
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
2021-06-12 11:40:33 -04:00
[[tool.mypy.overrides]]
module = [
"setuptools",
"pytest", # ignored in pre-commit to speed up check
"bashlex",
"importlib_resources",
"ghapi.*",
2021-06-12 11:40:33 -04:00
]
ignore_missing_imports = true
2021-10-26 12:06:09 -04:00
[tool.check-manifest]
ignore = [
".*",
".circleci/**",
"test/**",
"unit_test/**",
"docs/**",
"examples/**",
"bin/**",
"*.yml",
"CI.md", # TODO: can change test/test_ssl and remove this
"requirements-dev.txt",
"noxfile.py",
]
[tool.pylint]
master.py-version = "3.6"
master.jobs = "0"
master.fail-on = ["E", "F"]
master.fail-under = "9.8"
reports.output-format = "colorized"
messages_control.enable = [
"useless-suppression",
]
messages_control.disable = [
"abstract-class-instantiated", # filelock triggers this
"duplicate-code",
"fixme",
"invalid-name",
"line-too-long",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"no-else-break",
"no-else-return",
"protected-access",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-nested-blocks",
"too-many-return-statements",
"too-many-statements",
"unsubscriptable-object",
"wrong-import-position",
]