-
-
Notifications
You must be signed in to change notification settings - Fork 82
/
pyproject.toml
77 lines (69 loc) · 1.41 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
75
76
77
[build-system]
requires = [
"setuptools>=64",
"setuptools_scm>=8",
"cython>=3",
"wheel>=0.38",
"pkgconfig", # this should be Linux only, but PEP508 is not supported yet in pyproject.toml
]
[tool.black]
target-version = ['py39']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.mypy_cache
| \.venv
| venv.*
| build
| dist
| ci
)/
)
'''
[tool.isort]
profile = "black"
py_version = "39"
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.9"
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
[tool.cython-lint]
ignore = ['E501']