-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
94 lines (84 loc) · 2.19 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
[project]
# PEP 621 project metadata
# See https://www.python.org/dev/peps/pep-0621/
authors = [
{name = "BlueGlassBlock", email = "[email protected]"},
]
license = {text = "MIT"}
requires-python = ">=3.11,<4.0"
dependencies = [
"loguru>=0.7.2",
"dacite>=1.8.0,<2.0",
"lark[regex]>=1.1,<2.0",
"typing-extensions<5.0.0,>=4.0.0",
]
name = "kayaku"
version = "0.6.0"
description = "An powerful and flexible configuration solution."
readme = "README.md"
classifiers = [
"Typing :: Typed",
"Development Status :: 4 - Beta",
"Operating System :: OS Independent"
]
[build-system]
requires = ["pdm-pep517"]
build-backend = "pdm.pep517.api"
[tool.coverage.run]
branch = true
source = ["."]
omit = ["tests/*", "test.py"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# standard pragma
"pragma: no cover",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
"if (typing\\.)?TYPE_CHECKING( is True)?:",
"^ *\\.\\.\\.$",
"pass",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
# Don't complain overload method / functions
"@(typing\\.)?overload",
# don't complain __repr__ and __str__ and __repr_args__ for representation
"def __repr__\\(self\\).+",
"except ImportError:", # Don't complain about import fallback
]
partial_branches = [
"pragma: worst case"
]
precision = 2
[tool.pytest.ini_options]
python_files = "tests/*"
[tool.pyright]
ignore = [
"./tests"
]
[tool.isort]
profile = "black"
[tool.pdm]
build.includes = ["kayaku"]
[tool.pdm.scripts]
test = {composite = ["coverage run -m pytest -vv", "coverage xml", "coverage report"]}
[dependency-groups]
dev = [
"black<25.0.0,>=24.10.0",
"isort<6.0.0,>=5.13.2",
"pytest>=7.1.3",
"coverage>=6.4.4",
"rich~=13.9",
"jsonschema>=4.16.0",
"mkdocstrings[python]<1.0.0,>=0.27.0",
"mkdocs-material<10.0.0,>=9.5.44",
"mkdocs-section-index<1.0.0,>=0.3.4",
"mkdocs-literate-nav<1.0.0,>=0.4.1",
"ruff~=0.7",
]
[tool.ruff]
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "UP", "B", "SIM", "I", "TID"]
ignore = ["E501"]