-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (75 loc) · 2.06 KB
/
pyproject.toml
File metadata and controls
87 lines (75 loc) · 2.06 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
82
83
84
85
86
87
[tool.poetry]
name = "example" # FIXME
version = "0.0.1"
description = "A GitHub Template for Python Projects"
authors = ["Greenbone <info@greenbone.net>"]
license = "AGPL-3.0-or-later"
readme = "README.md"
classifiers = [
# Full list: https://pypi.org/pypi?%3Aaction=list_classifiers
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", # pylint: disable=line-too-long
"Environment :: Console",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [
{ include = "example" },
{ include = "tests", format = "sdist" },
] # FIXME
[tool.poetry.dependencies]
python = "^3.10"
shtab = ">=1.6.5"
[tool.poetry.group.dev.dependencies]
pontos = ">=26.2.0"
autohooks-plugin-black = ">=23.10.0"
autohooks-plugin-ruff = ">=23.10.0"
autohooks-plugin-mypy = ">=23.10.0"
coverage = ">=7.2.7"
[tool.black]
line-length = 80
target-version = ["py310", "py311", "py312", "py313", "py314"]
exclude = '''
/(
\.git
| \.venv
| \.github
| \.vscode
| _build
| build
| dist
| docs
)/
'''
[tool.autohooks]
mode = "poetry"
pre-commit = [
"autohooks.plugins.black",
"autohooks.plugins.ruff",
"autohooks.plugins.mypy",
]
[tool.pontos.version]
version-module-file = "example/__version__.py" # FIXME
[tool.ruff]
line-length = 80
target-version = "py310"
extend-select = ["I", "PLE", "PLW"]
[tool.poetry.scripts]
example-app = 'example:main' # FIXME
[tool.mypy]
files = "example" # FIXME
ignore_missing_imports = true
explicit_package_bases = true
[tool.coverage.run]
branch = true
omit = ["tests/*", "*/__init__.py"]
source = ["example"] # FIXME
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"