-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
101 lines (87 loc) · 1.86 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
[tool.poetry]
name = "dataclass-settings"
version = "0.5.0"
description = "Declarative dataclass settings."
repository = "https://github.com/dancardin/dataclass-settings"
authors = ["DanCardin <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
keywords = [
"dataclass",
"attrs",
"pydantic",
"msgspec",
"env",
"settings",
]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [{include = "dataclass_settings", from = "src"}]
include = [
"*.md",
"py.typed",
]
[tool.poetry.dependencies]
python = ">=3.8,<4"
typing-extensions = ">=4.7.1"
typing-inspect = "*"
[tool.poetry.group.dev.dependencies]
attrs = "*"
black = "^23.7.0"
coverage = "^7.3.0"
mypy = ">=1.0"
pydantic = "*"
msgspec = "*"
pytest = "^7.4.0"
ruff = "^0.0.286"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py38"
select = ["C", "D", "E", "F", "I", "N", "Q", "RET", "RUF", "S", "T", "UP", "YTT"]
ignore = [
"C901",
"E501",
"S101",
"D1",
"D203",
"D213",
"D406",
"D407",
"D408",
"D409",
"D413",
]
[tool.ruff.per-file-ignores]
"tests/*" = ["T201"]
[tool.ruff.pyupgrade]
keep-runtime-typing = true
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"if __name__ == .__main__.:",
"assert_never",
]
[tool.coverage.run]
branch = true
parallel = true
include = ["src/*"]
[tool.mypy]
strict_optional = true
ignore_missing_imports = true
warn_unused_ignores = true
incremental = true
check_untyped_defs = true
[tool.pytest.ini_options]
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ELLIPSIS"
addopts = "--doctest-modules -vv --ff --strict-markers"
norecursedirs = ".* build dist *.egg bin"
markers = [
"help",
]