Skip to content

Commit d9ecd7f

Browse files
committedDec 23, 2024·
add uv as python package management
1 parent a4fa5a8 commit d9ecd7f

File tree

3 files changed

+27
-34
lines changed

3 files changed

+27
-34
lines changed
 

‎pyproject.toml

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ classifiers = [
1515
"Programming Language :: Python :: 3.10",
1616
"Programming Language :: Python :: 3.11",
1717
"Programming Language :: Python :: 3.12",
18-
"Programming Language :: Python :: 3.8",
19-
"Programming Language :: Python :: 3.9",
2018
]
2119
description = "A Python boilet template for different types of projects."
2220
dynamic = ["version"]

‎template/ci.py

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import subprocess
2+
3+
4+
5+
def coverage():
6+
from qpyci.commands import run_tests
7+
run_tests('qpyconf')
8+
9+
10+
def check_format():
11+
subprocess.run(['uvx', 'ruff', 'check', '--fix'], check=True)
12+
subprocess.run(['uvx', 'ruff', 'format'], check=True)
13+
14+
def ci():
15+
subprocess.run(['uv','run','cov'],check=True)
16+
subprocess.run(['uv','run','badge'],check=True)
17+
18+
19+
# if __name__ == "__main__":
20+
# import sys
21+
# if len(sys.argv) > 1:
22+
# if sys.argv[1] == 'check':
23+
# check_format()
24+
# elif sys.argv[1] == 'cov':
25+
# coverage()
26+
# else:
27+
# check_format()

‎template/src/{{module_name}}/config/__init__.py

-32
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.