-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
109 lines (90 loc) · 2.5 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
[build-system]
requires = ["mina-build>=0.2.5"]
build-backend = "pdm.backend"
[project]
authors = [{ name = "fluentqa", email = "fluentqa@fluent-qa.com" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
description = "A Simple Configuration Python Project"
dynamic = ["version"]
keywords = [
"python configuration",
"pydantic",
"easy settings management",
"dynaconf",
"dotenv",
]
license = { text = "UNDEFINED" }
name = "qpyconf"
readme = "README.md"
requires-python = ">=3.10"
dependencies = ["dynaconf>=3.2.5", "pydantic>=2.7.4", "ruff>=0.7.2"]
[project.urls]
issue = "https://github.com/fluent-qa/qpyconf/issues"
repository = "https://github.com/fluent-qa/qpyconf"
[tool.pytest.ini_options]
addopts = "-l -s --durations=0"
log_cli = true
log_cli_level = "info"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_format = "%(asctime)s %(levelname)s %(message)s"
minversion = "6.0"
cov = "qpyconf"
cov-report = "html"
[tool.coverage]
[tool.coverage.report]
fail_under = 50
[tool.coverage.run]
source = ["src/qpyconf"]
[tool.ruff]
extend-exclude = ["template"]
fix = true
src = ["src"]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
"RUF100", # Unused noqa directive
"S", # flake8-bandit
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle warning
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "D103", "D102", "D101"]
"src/*" = ["D103", "D102", "D101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tomlsort]
all = true
in_place = true
trailing_comma_inline_array = true
[tool.pdm]
distribution = true
[tool.pdm.scripts]
lint = "ruff check --fix"
fmt = "ruff format . --check"
test = "pytest --cov-report term --cov=qpyconf tests/"
cov_report = "pytest --cov-report html --cov=qpyconf tests/"
cov_badge = "coverage-badge -f -o coverage.svg"
docs = "mkdocs serve"
docs-deploy = "mkdocs gh-deploy --force"
cleanup = "sh scripts/cleanup.sh"
purge = " rm -rf .venv/ && sh scripts/cleanup.sh "
[tool.pdm.dev-dependencies]
lint = ["ruff>=0.4.9"]
test = ["pytest-cov>=5.0.0", "pytest>=8.2.2"]
[[tool.pdm.source]]
name = "mirrors"
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
[[tool.pdm.source]]
name = "douban"
url = "https://pypi.doubanio.com/simple/"