-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (88 loc) · 1.56 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (88 loc) · 1.56 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
88
89
90
91
92
93
94
95
96
97
98
[project]
name = "oapi-template"
version = "0.0.0"
description = "A template for OpenAPI clients leveraging the `oapi` library"
readme = "README.md"
license = "MIT"
requires-python = "~=3.9"
authors = [
{ email = "david@belais.me" },
]
keywords = [
"OpenAPI",
]
[project.urls]
Documentation = "https://oapi-template.enorganic.org"
Repository = "https://github.com/enorganic/oapi-template"
[tool.hatch.envs.default]
python = "3.9"
dependencies = [
"dependence~=1.0",
"cookiecutter~=2.6",
"gittable~=0.0",
"pyyaml>2",
"mypy",
"oapi~=2.0",
"pytest",
]
pre-install-commands = [
"pip install --upgrade pip setuptools",
]
post-install-commands = [
"hatch run mypy --install-types --non-interactive || echo",
]
[tool.hatch.envs.hatch-static-analysis]
extra-dependencies = [
"dependence~=1.0",
]
[tool.hatch.envs.docs]
template = "docs"
python = "3.13"
dependencies = [
"mkdocs-material",
"mkdocstrings[python]",
"black",
"dependence~=1.0",
]
[tool.ruff]
line-length = 79
extend-exclude = [
"*/tests",
]
[tool.ruff.lint]
ignore = [
"F842",
"INP001",
"ARG001",
]
extend-select = [
"E",
"F",
"UP",
"B",
"SIM",
"I",
"C",
"N",
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 79
[tool.black]
line-length = 79
target-version = [
"py39",
"py310",
"py311",
"py312",
"py313",
]
[tool.mypy]
python_version = "3.9"
files = [
"hooks",
]
disallow_untyped_defs = true
disallow_incomplete_defs = true