-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
83 lines (73 loc) · 1.8 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
[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*",
]
test-requires = ["pytest", "pytest-xdist"]
[tool.cibuildwheel.macos]
before-build = [
"/Users/runner/micromamba-bin/micromamba create -y -p $MAMBA_ROOT_PREFIX/envs/build -c conda-forge 'llvm-openmp=11'",
]
[tool.cibuildwheel.macos.environment]
LDFLAGS="-Wl,-rpath,$MAMBA_ROOT_PREFIX/envs/build/lib -L$MAMBA_ROOT_PREFIX/envs/build/lib"
CFLAGS="-I$MAMBA_ROOT_PREFIX/envs/build/include"
CXXFLAGS="-I$MAMBA_ROOT_PREFIX/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",
]