-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathpyproject.toml
65 lines (61 loc) · 1.57 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
[build-system]
requires = [
"setuptools<64; python_version<='3.11'",
"setuptools<70; python_version>'3.11'",
"wheel",
# fix numpy version for legacy Python versions
"numpy==1.14.5; python_version<='3.7' and platform_machine!='aarch64'",
# oldest-supported-numpy is deprecated and only applied for older Python versions
"oldest-supported-numpy; (python_version>'3.7' or platform_machine=='aarch64') and python_version<'3.9'",
# Force numpy higher than 2.0, so that built wheels are compatible
# with both numpy 1 and 2
"numpy>=2.0.0; python_version>='3.9'",
"cython>=3.0; platform_system!='Windows'",
]
[tool.coverage.run]
branch = true
cover_pylib = false
concurrency = ["multiprocessing", "thread", "greenlet"]
omit=[
"*/**/conftest.py",
"*/tests/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"return NotImplemented",
"if TYPE_CHECKING:",
]
[tool.black]
line-length = 88
skip-string-normalization = true # make sure py27 unicode strings not modified
target-version = ['py34'] # make sure no commas added after kwargs
extend-exclude = '''
^/benchmarks/.*
| ^/bin/.*
| ^/cupid/.*
| ^/docs/.*
| ^/misc/.*
| ^/odps/mars_extension/.*
| ^/odps/df/.*
| ^/odps/lib/.*
| ^/odps/ml/.*
| ^/odps/static/.*
| ^/odps_scripts/.*
'''
[tool.isort]
profile = "black"
py_version = 36
skip_glob = [
"cupid/*",
"examples/*",
"misc/*",
"odps/df/*",
"odps/lib/*",
"odps/mars_extension/*",
"odps/ml/*",
"odps_scripts/*",
]