-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml.jinja
More file actions
109 lines (98 loc) · 2.34 KB
/
pyproject.toml.jinja
File metadata and controls
109 lines (98 loc) · 2.34 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
99
100
101
102
103
104
105
106
107
108
109
[project]
name = "{{ module_name }}"
version = "0.0.1.dev0"
description = "{{ project_description }}"
authors = [
{ name = "{{ author_name }}", email = "{{ author_email }}" }
]
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
[dependency-groups]
dev = [
"anybadge>=1.14.0",
"bandit>=1.7.5",
"bpython>=0.24",
"mypy>=1.4.1",
"pytest>=7.4.0",
"pytest-asyncio>=0.23.2",
"pytest-cov>=4.1.0",
"ruff>=0.1.6",
"towncrier>=23.11.0",
"uvloop>=0.19.0",
]
docs = [
"mkdocs>=1.4.2",
"mkdocs-gen-files>=0.4.0",
"mkdocs-literate-nav>=0.6.0",
"mkdocs-material>=9.1.3",
"mkdocs-section-index>=0.3.4",
"mkdocstrings>=0.24.0",
"mkdocstrings-python>=1.7.5",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/"]
[tool.ruff]
fix = false
unfixable = [
"ERA", # do not autoremove commented out code
]
target-version = "py314"
line-length = 120
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
extend-exclude = ["docs/*", "tests/fixtures/exceptions/*"]
ignore = [
"E722", # Bare exceptions
]
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.isort]
force-single-line = true
lines-between-types = 1
lines-after-imports = 2
known-first-party = []
required-imports = ["from __future__ import annotations"]
[tool.mypy]
strict = true
files = ["src/{{ module_name }}", "tests"]
pretty = true
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
[tool.towncrier]
directory = ".changelog"
package = "{{ module_name }}"
name = "{{ module_name }}"
package_dir = "src"
filename = "CHANGELOG.md"
title_format = "{version} ({project_date})"
[tool.coverage.run]
branch = true
omit = ["src/{{ module_name }}/__init__.py", "src/{{ module_name }}/__version__.py"]
[tool.coverage.report]
show_missing = true
fail_under = 75
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]