Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (83 loc) · 2.08 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (83 loc) · 2.08 KB
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
[tool.poetry]
name = "env-proxy"
version = "1.7.0"
description = "Creates a class used to query environmental variables with typehinting a conversion to basic Python types."
authors = ["Tomas Votava <info@tomasvotava.eu>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/tomasvotava/env-proxy"
repository = "https://github.com/tomasvotava/env-proxy"
[tool.poetry.urls]
Changelog = "https://github.com/tomasvotava/env-proxy/blob/master/CHANGELOG.md"
[tool.poetry.group.dev.dependencies]
pytest = "^9"
mypy = "<3"
ruff = "<1"
pytest-cov = ">=6,<8"
pytest-benchmark = "^5.2.3"
commitizen = "^4.16.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.1"
mkdocs-material = "^9.7.6"
mkdocstrings = {extras = ["python"], version = "^1.0.4"}
mkdocs-gen-files = "^0.6.1"
mkdocs-literate-nav = "^0.6.3"
[tool.poetry.dependencies]
python = ">=3.10,<3.15"
typing-extensions = { version = ">=4.6.0", python = "<3.11" }
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["tests/"]
addopts = [
"-v",
"--cov=env_proxy",
"--cov-report=xml:coverage.xml",
"--cov-report=json:coverage.json",
"--cov-report=term-missing",
]
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = [
"E",
"F",
"B",
"I",
"N",
"UP",
"S",
"A",
"DTZ",
"PT",
"SIM",
"PTH",
"PD",
"RUF",
"T20",
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"S101", # allow asserts in tests
"RUF018", # allow asserts with walrus in tests
"D", # ignore missing documentation in tests
]
"benchmarks/**" = [
"S101", # allow asserts in benchmarks
"RUF018", # allow asserts with walrus in benchmarks
"D", # ignore missing documentation in benchmarks
]
[tool.mypy]
strict = true
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = false
changelog_incremental = true