forked from ap--/python-seabreeze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
74 lines (67 loc) · 1.38 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[build-system]
requires = [
"setuptools>=18.0",
"cython>=0.18",
"wheel>=0.31.0",
"setuptools_scm",
"pkgconfig" # this should be Linux only, but PEP508 is not supported yet in pyproject.toml
]
[tool.black]
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.mypy_cache
| \.venv
| venv.*
| build
| dist
| ci
)/
)
'''
[tool.isort]
profile = "black"
py_version = "37"
force_single_line = true
[tool.cibuildwheel]
build-verbosity = 2
skip = ["*-musllinux_*", "pp*"]
test-extras = ["pyseabreeze"]
test-command = [
"python -c \"import seabreeze\"",
"python -c \"import seabreeze.types\"",
"python -c \"import seabreeze.cseabreeze\"",
"python -c \"import seabreeze.pyseabreeze\"",
]
[tool.cibuildwheel.linux]
before-build = "yum install -y libusb-devel"
[tool.mypy]
python_version = "3.7"
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unused_configs = true
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
files = "./src/**/*.py"
exclude = """
(?x)(
^build|
^docs|
^tests|
setup.py
)
"""
[[tool.mypy.overrides]]
module = "seabreeze.cseabreeze._wrapper"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "usb.*"
ignore_missing_imports = true