-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
116 lines (95 loc) · 2.62 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
[build-system]
requires = ["hatchling", "hatch-requirements-txt", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "bootlace"
dynamic = ["version", "dependencies"]
description = 'Pythonic Bootstrap Utilities'
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
keywords = []
authors = [{ name = "Alex Rudy", email = "[email protected]" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.metadata.hooks.requirements_txt]
files = ["requirements/base.in"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/bootlace/_version.py"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[project.urls]
Documentation = "https://github.com/alexrudy/bootlace#readme"
Issues = "https://github.com/alexrudy/bootlace/issues"
Source = "https://github.com/alexrudy/bootlace"
[tool.hatch.build.targets.sdist]
include = ["src/"]
[tool.pytest.ini_options]
testpaths = "tests"
filterwarnings = """
error
ignore:There is no current event loop:DeprecationWarning:dominate.*
"""
addopts = [
"--cov-report=term-missing",
"--cov-config=pyproject.toml",
"--cov=bootlace",
]
log_level = "NOTSET"
[tool.coverage.run]
branch = true
source = ["src/bootlace", "tests"]
omit = ["src/bootlace/_version.py", "src/bootlace/testing/*"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"def __hash__",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"except BaseException:",
"\\.\\.\\.",
"if app is not None:",
]
omit = ["src/bootlace/_version.py", "src/bootlace/testing/*"]
[tool.black]
line-length = 120
[tool.mypy]
files = "src/bootlace,stubs/dominate-stubs"
python_version = "3.11"
show_error_codes = true
allow_redefinition = true
disallow_subclassing_any = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
local_partial_types = true
no_implicit_reexport = true
strict_equality = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "wtforms.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_subclassing_any = false
[[tool.mypy.overrides]]
module = "html5lib.*"
ignore_missing_imports = true