-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
143 lines (121 loc) Β· 3.1 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api"
[project]
name = "cookie-python"
description = "Cookiecutter template for new Python projects"
license = "MIT"
authors = [ { name = "Stephen Kent", email = "smkent@smkent.net" } ]
readme = "README.md"
repository = "https://github.com/smkent/cookie-python"
classifiers = [
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
requires-python = ">=3.9,<4.0"
dynamic = [ "version" ]
dependencies = [
"loguru",
"pygithub",
"pyyaml",
"semver",
"toml ; python_version < '3.11'",
]
[project.scripts]
new-cookie = "cookie_python.new:main"
manage-cookie = "cookie_python.manage.main:main"
[tool.poetry]
packages = [
{ include = "{{cookiecutter.project_name}}" }
]
requires-poetry = ">=2.0"
version = "0.0.0"
[tool.poetry.requires-plugins]
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
[tool.poetry.group.dev.dependencies]
bandit = {extras = ["toml"], version = "*"}
black = "*"
build = "*"
cruft = "*"
flake8 = "*"
flake8-bugbear = "*"
flake8-pyproject = "*"
flake8-simplify = "*"
isort = "*"
mypy = "*"
pep8-naming = "*"
poethepoet = "*"
pre-commit = "*"
pytest = "*"
pytest-cookies = "*"
pytest-cov = "*"
pytest-github-actions-annotate-failures = "*"
pytest-sugar = "*"
types-PyYAML = "*"
[tool.poetry.scripts]
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
[tool.poe.tasks.lint]
cmd = "pre-commit run --all-files --show-diff-on-failure"
help = "Check all files"
[tool.poe.tasks.pytest]
cmd = "pytest"
help = "Run unit tests with pytest"
env = { PYTHON_KEYRING_BACKEND = "keyring.backends.null.Keyring" }
[tool.poe.tasks.test]
sequence = ["lint", "pytest"]
help = "Run all tests"
[tool.poe.tasks.create]
cmd = "new-cookie"
help = "Create new project from cookie-python template"
[tool.poe.tasks.updatetests]
cmd = "pytest --update-expected-outputs"
help = "Update test expected output files from test results"
[tool.bandit]
skips = [
"B101", # assert_used
"B404", # blacklist_subprocess
"B603", # subprocess_without_shell_equals_true
"B607", # start_process_with_partial_path
]
[tool.black]
line-length = 79
[tool.coverage.run]
source = ["cookie_python"]
omit = ["/etc/*", "/tmp/*"]
[tool.coverage.report]
fail_under = 0
show_missing = true
omit = ["/etc/*", "/tmp/*"]
[tool.cruft]
skip = [".git"]
[tool.flake8]
exclude = "./.*,./{{cookiecutter.project_name}}"
[tool.isort]
atomic = true
profile = "black"
line_length = 79
[tool.mypy]
files = ["tests"]
mypy_path = "types"
disallow_untyped_defs = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = """\
--cov \
--cov-append \
--cov-report term \
--cov-report xml:.pytest_coverage.xml \
--junitxml=.pytest_results.xml \
"""
# vim: ft=cfg