-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
78 lines (68 loc) · 1.84 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "draccus"
version = "0.9.3"
authors = [
{name = "David Hall", email = "[email protected]"},
{name = "Siddharth Karamcheti", email = "[email protected]"},
]
description = "A slightly opinionated framework for simple dataclass-based configurations based on Pyrallis."
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"mergedeep~=1.3",
"pyyaml~=6.0",
"pyyaml-include~=1.4",
"toml~=0.10",
"typing-inspect~=0.9.0",
]
[project.optional-dependencies]
dev = [
"black",
"mypy",
"pre-commit",
"pytest",
"ruff",
]
[project.urls]
homepage = "https://github.com/dlwh/draccus"
repository = "https://github.com/dlwh/draccus"
issues = "https://github.com/dlwh/draccus/issues"
[tool.black]
line-length = 121
target-version = ["py38", "py39", "py310"]
preview = true
[tool.mypy]
python_version = "3.8"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--doctest-modules --ignore=tests/draccus_choice_plugins"
testpaths = [
"tests",
]
[tool.ruff]
line-length = 121
target-version = "py38"
select = ["A", "B", "E", "F", "I", "RUF", "W"]
ignore = ["A003", "RUF009"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"**/tests/*" = ["E402", "E741", "F401", "F403", "F405",]
[tool.setuptools.packages.find]
where = ["."]
exclude = ["cache"]
[tool.setuptools.package-data]
"draccus" = ["py.typed"]