-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
118 lines (98 loc) · 2.11 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
117
118
# SPDX-FileCopyrightText: 2024 Benedikt Fein
#
# SPDX-License-Identifier: EUPL-1.2
[project]
name = "spring-yaml-to-env"
version = "0.1.0"
description = "Add your description here"
requires-python = ">=3.11,<4"
dependencies = [
"PyYAML~=6.0.0",
]
[dependency-groups]
dev = [
"darglint2~=1.8",
"isort~=5.13",
"mypy~=1.14",
"pyupgrade~=3.19",
"reuse~=5.0",
"ruff~=0.8",
"types-PyYAML~=6.0",
]
test = [
"coverage~=7.6",
"pytest~=8.3",
"pytest-cov~=6.0",
"pytest-sugar~=1.0",
]
[tool.uv]
default-groups = ["dev", "test"]
[tool.isort]
profile = "black"
line_length=88
multi_line_output=3
include_trailing_comma=true
indent=' '
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
disallow_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
warn_return_any = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
[tool.ruff]
line-length = 88
output-format = "full"
target-version = "py311"
[tool.ruff.lint]
select = ["ALL"]
# base set of ignored rules, to be adapted as needed
# https://beta.ruff.rs/docs/rules/
ignore = [
"ANN003", # typing annotations for kwargs, self, cls not needed
"COM", # trailing commas -> black
"D", # documentation
"E", # code style -> black
"I", # import order -> isort
"ISC",
"T20", # allow print statements
]
exclude = [
"docs",
".venv",
"venv",
".mypy_cache",
".pytest_cache",
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"PLR", # pylint refactoring suggestions
"S101" # assertions
]
[tool.coverage.run]
branch = true
source = ["spring_yaml_to_env", "tests"]
omit = ["tests/fixtures/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:"
]
[tool.coverage.html]
directory = "cov_html"
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"