-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
183 lines (170 loc) · 4.5 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
[tool]
[tool.poetry]
name = "pca-package-example"
version = "0.0.2"
description = "Example & reference build of pca-scaffold."
license = "BSD-3-Clause"
authors = [
"Łukasz Haze <github@lhaze.name>"
]
readme = "README.md"
repository = "{cookiecutter.repo_url}}/"
documentation = "https://pcah.github.io/pca-package-example/"
keywords = [
'package',
'pca',
'python-clean-architecture',
]
classifiers=[
"License :: OSI Approved :: BSD License",
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
packages = [
{ include = "pca" },
{ include = "tests", format = "sdist" },
]
[tool.poetry.dependencies]
python = ">=3.7,<4"
click = "^8.1.3"
black = {version = "^22.3.0", optional = true}
bump2version = {version = "^1.0.1", optional = true}
flake8 = {version = "^3.9.2", optional = true}
flake8-docstrings = {version = "^1.6.0", optional = true}
flake8-typing-imports = {version = "^1.12.0", optional = true}
isort = {version = "^5.10.1", optional = true}
mkdocs = {version = "^1.3.0", optional = true}
mkdocs-autorefs = {version = "^0.4.1", optional = true}
mkdocs-include-markdown-plugin = {version = "^3.3.0", optional = true}
mkdocs-material = {version = "^8.2.13", optional = true}
mkdocs-material-extensions = {version = "^1.0.3", optional = true}
mkdocstrings = {version = "^0.18.1", optional = true}
mkdocstrings-sourcelink = {version = "^0.3.2", optional = true}
mypy = {version = "^0.950", optional = true}
pip = {version = "^22.0.4", optional = true}
pre-commit = {version = "^2.18.1", optional = true}
pytest = {version = "^7.1.2", optional = true}
pytest-cov = {version = "^3.0.0", optional = true}
toml = {version = "^0.10.2", optional = true}
tox = {version = "^3.25.0", optional = true}
tox-gh-actions = {version = "^2.6.0", optional = true}
tox-poetry-installer = {version = "^0.8.4", optional = true}
twine = {version = "^4.0.0", optional = true}
[tool.poetry.extras]
test = [
"black",
"flake8",
"flake8-docstrings",
"flake8-typing-imports",
"isort",
"mypy",
"pre-commit",
"pytest",
"pytest-cov",
"tox",
"tox-gh-actions",
"tox-poetry-installer",
]
lint = [
"pre-commit",
]
dev = [
"bump2version",
"pip",
"pre-commit",
"toml",
"tox",
"twine",
]
docs = [
"mkdocs",
"mkdocs-autorefs",
"mkdocs-include-markdown-plugin",
"mkdocs-material",
"mkdocs-material-extension",
"mkdocstrings",
"mkdocstrings-sourcelink",
]
[tool.poetry.scripts]
pca-package-example = "pca.packages.package_example.cli:main"
[tool.black]
line-length = 119
target-version = [
"py37",
"py38",
"py39",
"py310"
]
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 119
force_grid_wrap = 2
multi_line_output = 3
known_first_party = ["pca"]
atomic = true
include_trailing_comma = true
use_parentheses = true
skip_gitignore = true
src_paths = [
"pca/packages/package_example",
"tests",
]
skip_glob = [
"docs/conf.py",
"*/setup.py",
]
[tool.coverage.run]
source = ["pca/packages/package_example"]
omit = [
"tests/*",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
# Don't complain about type-checking guards:
"TYPE_CHECKING",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
]
[tool.pydocstyle]
match_dir = "pca/packages/package_example/**"
convention = "pep257"
[build-system]
requires = ["poetry-core>=1.1.0a7"]
build-backend = "poetry.core.masonry.api"