forked from yt-project/yt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
75 lines (69 loc) · 1.74 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
[build-system]
# See https://github.com/scipy/scipy/pull/10431 for the AIX issue.
requires = [
"setuptools>=19.6",
"wheel",
# keep in sync with travis.yml "minimal" specs (Cython and numpy for py36)
# cython version is imposed by that of numpy, see release notes
# https://github.com/numpy/numpy/releases/tag/v1.19.2
"Cython>=0.26.1; python_version=='3.6'",
"Cython>=0.29.21; python_version>='3.7'",
"numpy==1.13.3; python_version=='3.6' and platform_system!='AIX'",
"numpy>=1.19.2; python_version>='3.7' and platform_system!='AIX'",
]
[tool.black]
line-length = 88
# note : 'py39' is not an available option as of black 19.10b0
target-version = ['py36', 'py37', 'py38']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| yt/frontends/stream/sample_data
)/
| yt/visualization/_colormap_data.py
'''
[tool.isort]
profile = "black"
combine_as_imports = true
skip = ["venv", "benchmarks"]
known_third_party = [
"IPython",
"nose",
"numpy",
"sympy",
"matplotlib",
"unyt",
"git",
"yaml",
"dateutil",
"requests",
"coverage",
"pytest",
"pyx",
"glue",
]
known_first_party = ["yt"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
# The -s option prevents pytest from capturing output sent to stdout
# -v runs pytest in verbose mode
# -rsfE: The -r tells pytest to provide extra test summary info on the events
# specified by the characters following the r. s: skipped, f: failed, E: error
[tool.pytest.ini_options]
addopts = '''
-s
-v
-rsfE
--ignore-glob='*_nose.py'
--ignore='yt/frontends/owls_subfind/tests/test_outputs.py'
--ignore='yt/frontends/ramses/tests/test_outputs.py'
'''