-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
127 lines (108 loc) · 3.12 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
119
120
121
122
123
124
125
126
127
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
authors = [{ name = "fluentqa", email = "[email protected]" }]
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
description = "A Simple Configuration Python Project"
version = "0.1.0"
requires-python = ">3.9"
keywords = [
"python configuration",
"pydantic",
"easy settings management",
"dynaconf",
"dotenv",
]
name = "qpyconf"
readme = "README.md"
dependencies = ["dynaconf>=3.2.5", "pydantic>=2.7.4", "qpyci"]
#[tool.uv.sources]
#torch = { index = "pytorch" }
#
#[[tool.uv.index]]
#name = "pytorch"
#url = "https://download.pytorch.org/whl/cpu"
[project.urls]
issue = "https://github.com/fluent-qa/qpyconf/issues"
repository = "https://github.com/fluent-qa/qpyconf"
[project.scripts]
cleanup = "qpyci.commands:clean"
cov = "ci:coverage"
badge = "qpyci.commands:generate_badge"
check_format = "ci:check_format"
ci = "ci:ci"
[tool.hatch.build.targets.wheel.force-include]
"ci.py" = "ci.py"
[tool.uv]
default-groups = ["dev"]
[tool.uv.sources]
qpyci = { git = "https://github.com/fluent-qa/qpyci.git", rev = "main" }
[tool.hatch.build.targets.wheel]
packages = ["src/qpyconf"]
[tool.pyright]
typeCheckingMode = "strict"
reportUnnecessaryTypeIgnoreComment = true
reportMissingTypeStubs = false
include = ["src", "tests"]
venvPath = ".venv"
# see https://github.com/microsoft/pyright/issues/7771 - we don't want to error on decorated functions in tests
# which are not otherwise used
executionEnvironments = [{ root = "tests", reportUnusedFunction = false }]
[dependency-groups]
lint = ["ruff>=0.8.3"]
dev = [
"allure-pytest>=2.13.5",
"pytest-cov>=6.0.0",
"pytest>=8.3.4",
"coverage-badge>=1.1.2",
]
[tool.ruff]
line-length = 120
target-version = "py39"
include = ["qpyconf/**/*.py", "tests/**/*.py", "docs/**/*.py"]
[tool.ruff.lint]
extend-select = ["Q", "RUF100", "C90", "UP", "I", "D"]
flake8-quotes = { inline-quotes = "single", multiline-quotes = "double" }
isort = { combine-as-imports = true, known-first-party = ["qpyconf"] }
mccabe = { max-complexity = 15 }
ignore = [
"D100", # ignore missing docstring in module
"D102", # ignore missing docstring in public method
"D104", # ignore missing docstring in public package
"D105", # ignore missing docstring in magic methods
"D107", # ignore missing docstring in __init__ methods
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
# don't format python in docstrings, pytest-examples takes care of it
docstring-code-format = false
quote-style = "single"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D"]
"docs/**/*.py" = ["D"]
"src/qpyconf/**/*.py" = ["D101", "D103"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = [
"--alluredir",
"allure-results",
"--clean-alluredir",
"-l",
"-s",
"--durations",
"0",
"--cov",
"qpyconf",
]
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"