-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
88 lines (77 loc) · 1.82 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
85
86
87
88
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
# Not necessary for packaging but every self-respecting Python
# package should a) use black and b) fix the WRONG default.
[tool.black]
line-length = 88
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.setuptools_scm]
fallback_version = "v0.10.0"
[tool.check-manifest]
ignore-default-rules = false
[tool.pytest.ini_options]
minversion = "6.0"
log_cli = true
log_cli_level = "INFO"
log_file = "astronet/tests/pytest.log"
log_file_level = "INFO"
addopts = [
"--ignore=sbin",
"--ignore=notebooks",
"--ignore-glob=**/viz/*", # Run visualisation tests separately: $ pytest tests/unit/viz/
"--color=yes",
"--verbose",
"--capture=tee-sys",
"--showlocals",
"--durations=0",
"--setup-show",
"--cov",
"--mpl",
"--nbmake",
"--log-cli-level=INFO",
"--numprocesses=auto",
"-ra",
# "--exitfirst",
]
testpaths = [
"astronet/tests",
]
filterwarnings = [
"ignore::UserWarning",
# note the use of single quote below to denote "raw" strings in TOML
'ignore:function ham\(\) is deprecated:DeprecationWarning',
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"serial",
]
[tool.coverage.run]
omit = [
"astronet/tests/*",
"**/constants.py",
]
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
no_strict_optional = true