-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
59 lines (52 loc) · 1.87 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
# Build System
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Project Metadata
[project]
name = "python-package-template-pypi" # Name has to be unique on pypi.
version = "0.1.1"
description = "A github template with my python package configurations."
readme = "README.md"
requires-python = ">=3.11"
license = { file = "LICENSE" }
authors = [{ name = "Daniel Mizsak", email = "[email protected]" }]
keywords = ["python", "template", "package", "github", "pypi"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = ["numpy"]
[project.optional-dependencies]
dev = ["hatch", "mypy", "pre-commit", "pytest-cov", "pytest", "ruff", "tox"]
docs = ["furo", "sphinx", "sphinx-copybutton"]
[project.scripts]
ppt = "python_package_template.cli:main"
[project.urls]
Documentation = "https://python-package-template-pypi.readthedocs.io/en/latest/"
Homepage = "https://pythonvilag.hu/"
Issues = "https://github.com/daniel-mizsak/python-package-template/issues"
Repository = "https://github.com/daniel-mizsak/python-package-template"
# Tools
# Hatch
[tool.hatch.build.targets.wheel]
packages = ["src/python_package_template"]
# MyPy
[tool.mypy]
ignore_missing_imports = true
pretty = true
show_column_numbers = true
show_error_context = true
strict = true
warn_unreachable = true
warn_unused_ignores = true
# Pytest
[tool.pytest.ini_options]
addopts = "--cov=python_package_template --cov=tests --cov-config=pyproject.toml --cov-report=term-missing --cov-report=html --cov-report=xml"
testpaths = ["tests"]
# Coverage
[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:", "if __name__ == '__main__':"]
omit = ["**/__main__.py"]