-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
98 lines (84 loc) · 2.65 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[build-system]
requires = ["setuptools>=68", "setuptools_scm[toml]>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "python-project-template"
description = "Python project template with modern standards"
readme = "README.md"
authors = [
{name = "Daniel Lekic"},
]
requires-python = ">=3.9"
keywords = ["project", "template"]
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
]
dynamic = ["dependencies", "optional-dependencies", "version"]
[project.urls]
Homepage = "https://github.com/lekic/python-project-template"
Documentation = "https://pages.github.com/lekic/python-project-template"
Repository = "https://github.com/lekic/python-project-template.git"
Issues = "https://github.com/lekic/python-project-template/issues"
Changelog = "https://github.com/lekic/python-project-template/blob/master/CHANGELOG.md"
[tool.coverage.html]
directory = "coverage_html"
[tool.coverage.run]
source = ["src"]
[tool.mypy]
exclude = ['venv', '.venv']
[tool.pytest.ini_options]
addopts = "-ra -q --cov --import-mode=importlib"
pythonpath = ["src"]
testpaths = ["tests"]
[tool.ruff]
line-length = 88
output-format = "concise"
fix = true
# src = ["src", "tests"]
# include = ["pyproject.toml", "src/**/*.py", "scripts/**/*.py", "tests/**/*.py"]
[tool.ruff.format]
indent-style = "space"
quote-style = "double"
skip-magic-trailing-comma = false
[tool.ruff.lint]
select = ["B", "D", "E", "F", "I", "N", "W", "UP"]
ignore = ["D203"]
unfixable = ["B"]
dummy-variable-rgx = "^_$"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"D104", # Missing docstring in public package
"F401", # Imported but unused
"F403", # Wildcard imports
]
"tests/**" = [
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function
"S101", # Use of `assert` detected
]
"docs/**" = [
"INP001", # Requires __init__.py but docs folder is not a package.
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
optional-dependencies.dev = { file = ["requirements-dev.txt"] }
[tool.setuptools.packages.find]
where = ["src"]