-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (59 loc) · 1.73 KB
/
pyproject.toml
File metadata and controls
72 lines (59 loc) · 1.73 KB
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
[build-system]
# AVOID CHANGING REQUIRES: IT WILL BE UPDATED BY PYSCAFFOLD!
requires = ["setuptools>=46.1.0", "setuptools_scm[toml]>=5"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
# For smarter version schemes and other configuration options,
# check out https://github.com/pypa/setuptools_scm
version_scheme = "no-guess-dev"
[tool.pytest.ini_options]
# Enable log display during test runs
# See: https://docs.pytest.org/en/latest/how-to/logging.html#live-logs
log_cli = true
addopts = "--strict-markers"
markers = [
"individual: Marks tests that need to run in an individual pytest run"
]
[tool.black]
line-length = 80
[tool.docstrfmt]
line_length = 80
[tool.isort]
profile = "black"
known_first_party = "cyrxnopt"
multi_line_output = 3
line_length = 80
[tool.coverage.run]
branch = true
source = ["cyrxnopt"]
# omit = bad_file.py
[tool.coverage.paths]
source = ["src/", "*/site-packages/"]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
] # Regexes for lines to exclude from consideration
[tool.mypy]
disallow_untyped_defs = true
# Any changes to exclude here need to be made in .pre-commit-config.yaml, too!
# This exclude list doesn't work because of the way pre-commit invokes mypy
exclude = [
'^setup.py$',
'^build',
'^venv',
'^docs',
'^tests'
]
[[tool.mypy.overrides]]
module = "cyrxnopt.*"
disallow_incomplete_defs = true