-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (64 loc) · 1.4 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (64 loc) · 1.4 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
[build-system]
requires = ["hatchling==1.30.1"]
build-backend = "hatchling.build"
[project]
name = "module-name"
version = "0.0.1"
requires-python = ">=3.11"
description = "Module Description"
readme = "README.md"
license = "MIT"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"requests>=2.34.2",
]
[dependency-groups]
format = [
"black",
"isort",
]
lint = [
"flake8",
"flake8-pep585",
"mypy",
]
dev = [
"pytest",
"pytest-randomly",
"coverage",
]
[project.urls]
homepage = "https://github.com/[ORG NAME]/[REPO NAME]"
# [project.scripts]
# python-src-example = "module_name.sample:main"
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_incomplete_defs = false
disallow_untyped_defs = false
warn_unused_ignores = false
[tool.coverage.run]
branch = true
source = ["src/module_name", "tests"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"\\.\\.\\.",
"if TYPE_CHECKING:",
]