-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
134 lines (114 loc) · 2.83 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
[build-system]
requires = ["poetry-core>=1.2.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry]
name = "cookie-python"
version = "0.0.0"
description = ""
license = "MIT"
authors = ["Stephen Kent <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",
]
packages = [
{ include = "{{cookiecutter.project_name}}" }
]
[tool.poetry.dependencies]
python = "^3.8"
loguru = "*"
poetry-dynamic-versioning = "*"
pygithub = "*"
pyyaml = "*"
semver = "*"
[tool.poetry.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]
new-cookie = "cookie_python.new:main"
manage-cookie = "cookie_python.manage.main:main"
[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