-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml.template
65 lines (57 loc) · 1.71 KB
/
pyproject.toml.template
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", "wheel"]
build-backend = "setuptools.build_meta:__legacy__"
[project]
name = "${project_name}"
version = "0.0.0"
authors = [{ name = "TODO: Your name", email = "[email protected]" }]
description = "TODO: Short description"
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
license = { text = "MIT" }
requires-python = ">=3.8"
dependencies = [] # TODO: List dependencies here using PEP-508 syntax
[project.urls]
Repository = "https://example.com/yourproject" # TODO: Replace
[project.optional-dependencies]
dev = [
"flake8",
"yapf",
"mypy",
"pytest",
"pytest-cov",
"pytest-mock",
]
# Warning: Support for this is in beta phase.
# See https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#setuptools-specific-configuration
[tool.setuptools]
zip-safe = false
[tool.yapf]
column_limit = 119
[tool.pytest.ini_options]
addopts = ["--cov", "--cov-report=term"]
# addopts = ["--cov", "--cov-report=term", "--cov-fail-under=95"] # TODO: Use this to fail tests with low coverage.
testpaths = ["tests/"]
log_format = "%(asctime)s %(levelname)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_cli = true
log_cli_level = "DEBUG"
[tool.coverage.run]
branch = true
omit = ["tests/*"]
[tool.mypy]
exclude = """(?x)(
site-packages
| node_modules
| tests
)"""