forked from jenstroeger/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
47 lines (41 loc) · 1.25 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
# https://bandit.readthedocs.io/en/latest/config.html
# Skip test B101 because of issue https://github.com/PyCQA/bandit/issues/457
[tool.bandit]
tests = []
skips = ["B101"]
# https://github.com/psf/black#configuration
[tool.black]
line-length = 120
target-version = ["py39"]
[tool.coverage.report]
fail_under = 100
show_missing = true
# https://github.com/pytest-dev/pytest-cov
# https://github.com/nedbat/coveragepy
[tool.coverage.run]
omit = [
"*/package/__main__.py",
]
# https://pycqa.github.io/isort/
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 120
skip_gitignore = true
# https://docs.pytest.org/en/6.2.x/customize.html#configuration-file-formats
# https://docs.pytest.org/en/6.2.x/reference.html#configuration-options
# https://docs.pytest.org/en/6.2.x/reference.html#command-line-flags
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--verbose --doctest-modules -ra --cov package" # Consider adding --pdb
doctest_optionflags = "IGNORE_EXCEPTION_DETAIL"
testpaths = [
"tests",
]
# https://python-semantic-release.readthedocs.io/en/latest/
[tool.semantic_release]
branch = "main"
version_variable = "src/package/__init__.py:__version__"
upload_to_pypi = false
commit_subject = "Release v{version}"
changelog_file = "CHANGELOG.md"