Skip to content

Commit d46fae9

Browse files
committed
fix python version error
1 parent d457356 commit d46fae9

File tree

3 files changed

+19
-122
lines changed

3 files changed

+19
-122
lines changed

ci.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ def check_format():
1111
subprocess.run(['uvx', 'ruff', 'check', '--fix'], check=True)
1212
subprocess.run(['uvx', 'ruff', 'format'], check=True)
1313

14+
def ci():
15+
subprocess.run(['uv','run','cov'],check=True)
16+
subprocess.run(['uv','run','badge'],check=True)
17+
1418

1519
# if __name__ == "__main__":
1620
# import sys

pdm.toml

Lines changed: 0 additions & 94 deletions
This file was deleted.

pyproject.toml

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ classifiers = [
1111
]
1212
description = "A Simple Configuration Python Project"
1313
version = "0.1.0"
14-
requires-python = ">=3.9"
14+
requires-python = ">3.9"
1515
keywords = [
1616
"python configuration",
1717
"pydantic",
@@ -21,11 +21,7 @@ keywords = [
2121
]
2222
name = "qpyconf"
2323
readme = "README.md"
24-
dependencies = [
25-
"dynaconf>=3.2.5",
26-
"pydantic>=2.7.4",
27-
"qpyci",
28-
]
24+
dependencies = ["dynaconf>=3.2.5", "pydantic>=2.7.4", "qpyci"]
2925

3026
#[tool.uv.sources]
3127
#torch = { index = "pytorch" }
@@ -43,6 +39,7 @@ cleanup = "qpyci.commands:clean"
4339
cov = "ci:coverage"
4440
badge = "qpyci.commands:generate_badge"
4541
check_format = "ci:check_format"
42+
ci = "ci:ci"
4643

4744
[tool.hatch.build.targets.wheel.force-include]
4845
"ci.py" = "ci.py"
@@ -65,15 +62,11 @@ include = ["src", "tests"]
6562
venvPath = ".venv"
6663
# see https://github.com/microsoft/pyright/issues/7771 - we don't want to error on decorated functions in tests
6764
# which are not otherwise used
68-
executionEnvironments = [
69-
{ root = "tests", reportUnusedFunction = false },
70-
]
65+
executionEnvironments = [{ root = "tests", reportUnusedFunction = false }]
7166

7267

7368
[dependency-groups]
74-
lint = [
75-
"ruff>=0.8.3",
76-
]
69+
lint = ["ruff>=0.8.3"]
7770
dev = [
7871
"allure-pytest>=2.13.5",
7972
"pytest-cov>=6.0.0",
@@ -84,21 +77,10 @@ dev = [
8477
[tool.ruff]
8578
line-length = 120
8679
target-version = "py39"
87-
include = [
88-
"qpyconf/**/*.py",
89-
"tests/**/*.py",
90-
"docs/**/*.py",
91-
]
80+
include = ["qpyconf/**/*.py", "tests/**/*.py", "docs/**/*.py"]
9281

9382
[tool.ruff.lint]
94-
extend-select = [
95-
"Q",
96-
"RUF100",
97-
"C90",
98-
"UP",
99-
"I",
100-
"D",
101-
]
83+
extend-select = ["Q", "RUF100", "C90", "UP", "I", "D"]
10284
flake8-quotes = { inline-quotes = "single", multiline-quotes = "double" }
10385
isort = { combine-as-imports = true, known-first-party = ["qpyconf"] }
10486
mccabe = { max-complexity = 15 }
@@ -128,10 +110,15 @@ quote-style = "single"
128110
testpaths = ["tests"]
129111
pythonpath = ["src"]
130112
addopts = [
131-
"--alluredir", "allure-results",
113+
"--alluredir",
114+
"allure-results",
132115
"--clean-alluredir",
133-
"-l", "-s", "--durations", "0",
134-
"--cov", "qpyconf"
116+
"-l",
117+
"-s",
118+
"--durations",
119+
"0",
120+
"--cov",
121+
"qpyconf",
135122
]
136123
log_cli = true
137124
log_cli_level = "info"

0 commit comments

Comments
 (0)