-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
84 lines (74 loc) · 1.7 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
78
79
80
81
82
83
84
[build-system]
requires = [
'setuptools',
'setuptools-scm',
'wheel',
'Cython',
'numpy>=1.25',
'scikit-learn',
]
[tool.ruff]
line-length = 88
target-version = "py39"
exclude = ["src/glum_benchmarks/orig_sklearn_fork/"]
[tool.ruff.lint]
ignore = ["E731", "N802", "N803", "N806"]
select = [
# pyflakes
"F",
# pycodestyle
"E", "W",
# isort
"I",
# pep8-naming
"N",
# pyupgrade
"UP",
]
[tool.ruff.lint.isort]
known-first-party = ["glum", "glum_benchmarks"]
[tool.mypy]
python_version = '3.9'
exclude = [
"tests/",
"src/glum_benchmarks/orig_sklearn_fork/",
]
no_implicit_optional = false
check_untyped_defs = true
namespace_packages = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
# https://github.com/scikit-learn/scikit-learn/issues/16705
module = ["sklearn.*"]
ignore_missing_imports = true
[tool.cibuildwheel]
skip = [
"*-win32",
"*-manylinux_i686",
"pp*",
"*-musllinux_*",
"cp36*",
"cp37*",
"cp38*",
"cp313-*",
]
test-requires = ["pytest", "pytest-xdist"]
[tool.cibuildwheel.macos]
before-build = [
"bash build_tools/prepare_macos_wheel.sh",
]
[tool.cibuildwheel.macos.environment]
LDFLAGS="-Wl,-rpath,$CONDA/envs/build/lib -L$CONDA/envs/build/lib"
CFLAGS="-I$CONDA/envs/build/include"
CXXFLAGS="-I$CONDA/envs/build/include"
CXX="/usr/bin/clang++"
CC="/usr/bin/clang"
MACOSX_DEPLOYMENT_TARGET="10.13"
[tool.pytest.ini_options]
# Filters are standard python warning filters as described here:
# https://docs.python.org/3/library/warnings.html#the-warnings-filter
filterwarnings = [
"ignore:.*distutils.*:DeprecationWarning:.*",
"ignore:.*distutils.*:UserWarning:.*",
"ignore:.*The 'u' format is deprecated.*:DeprecationWarning:pywintypes",
]