Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (70 loc) · 1.84 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (70 loc) · 1.84 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
73
74
75
76
77
78
79
80
81
[build-system]
build-backend = "setuptools.build_meta"
requires = [ "setuptools", "wheel" ]
[project]
name = "template-python"
version = "0.1.0"
description = "Template python repository."
readme = "README.md"
keywords = [ "python" ]
license = { file = "LICENSE.txt" }
authors = [ { name = "Max" } ]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"numpy",
]
optional-dependencies.dev = [
"jupyterlab",
"pre-commit",
"pyproject-fmt",
"pyright",
"ruff",
"template-python[test,docs]",
]
optional-dependencies.docs = [
"griffe",
"ipykernel",
"nbclient>=0.10",
"nbformat>=5.10",
]
optional-dependencies.test = [ "pytest", "pytest-cov" ]
urls."Source" = "https://github.com/max-models/template-python"
scripts.template-python = "app.main:main"
[tool.setuptools.packages.find]
where = [ "src" ]
[tool.setuptools.package-data]
"*" = [ "py.typed" ]
[tool.ruff]
target-version = "py310"
line-length = 88
extend-include = [ "*.ipynb" ]
[tool.ruff.lint]
# pycodestyle, pyflakes, isort, pyupgrade, bugbear and pydocstyle
select = [ "B", "D", "E", "F", "I", "UP", "W" ]
ignore = [ "E501" ] # line length is handled by the formatter
pydocstyle.convention = "google"
per-file-ignores."**/tests/**" = [ "D" ]
per-file-ignores."*.ipynb" = [ "D" ]
per-file-ignores."docs/tools/*" = [ "D" ]
[tool.pyright]
include = [ "src" ]
exclude = [ "**/tests" ]
pythonVersion = "3.10"
typeCheckingMode = "standard"
[tool.pytest.ini_options]
pythonpath = [ "src" ]
testpaths = [ "src" ]
addopts = "-ra"
[tool.coverage.run]
source = [ "app" ]
omit = [ "*/tests/*" ]
[tool.coverage.report]
show_missing = true