-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathpyproject.toml
64 lines (55 loc) · 1.56 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
[tool.poetry]
name = "{{cookiecutter.project_slug}}"
version = "0.0.1"
description = "{{cookiecutter.project_description}}"
authors = ["{{cookiecutter.author}} <f{{cookiecutter.email}}>"]
repository = "https://github.com/{{cookiecutter.author_github_handle}}/{{cookiecutter.project_name}}"
documentation = "https://{{cookiecutter.author_github_handle}}.github.io/{{cookiecutter.project_name}}/"
readme = "README.md"
packages = [
{include = "{{cookiecutter.project_slug}}"}
]
[tool.poetry.dependencies]
python = ">=3.8,<4.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.2.0"
{% if cookiecutter.codecov == 'y' -%}
pytest-cov = "^4.0.0"
{% endif -%}
{% if cookiecutter.deptry == 'y' -%}
deptry = "^0.6.4"
{% endif -%}
mypy = "^0.981"
pre-commit = "^2.20.0"
tox = "^3.25.1"
{% if cookiecutter.mkdocs == 'y' -%}
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.2"
mkdocs-material = "^8.5.10"
mkdocstrings = {extras = ["python"], version = "^0.19.0"}
{%- endif %}
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py37']
preview = true
[tool.isort]
profile = "black"
[tool.mypy]
files = ["{{cookiecutter.project_slug}}"]
disallow_untyped_defs = "True"
disallow_any_unimported = "True"
no_implicit_optional = "True"
check_untyped_defs = "True"
warn_return_any = "True"
warn_unused_ignores = "True"
show_error_codes = "True"
{% if cookiecutter.codecov == "y"-%}
[tool.coverage.report]
skip_empty = true
[tool.coverage.run]
branch = true
source = ["{{cookiecutter.project_slug}}"]
{% endif%}