Skip to content

Commit d809fac

Browse files
author
colyerdeng
committed
feat: update template
1 parent e7e5749 commit d809fac

39 files changed

+3014
-937
lines changed

.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include = ["pyproject.toml", "repo_scaffold/**/*.py", "tests/**/*.py"]
22
line-length = 120
3-
target-version = "py312"
3+
target-version = "py310"
44

55
[lint]
66
extend-ignore = [

Taskfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: '3'
33
vars:
44
package_name: repo_scaffold
5-
python_min_version: &dev_version '3.12'
5+
python_min_version: &dev_version '3.10'
66
python_max_version: '3.12'
77
python_dev_version: *dev_version
88
pypi_server_url: '{{.PYPI_SERVER_URL | default "https://pypiserver.shawndeng.cc"}}'
@@ -44,7 +44,7 @@ tasks:
4444
vars:
4545
python_versions:
4646
sh: |
47-
python3 -c "
47+
uv run python -c "
4848
min_ver = '{{.python_min_version}}'.split('.')
4949
max_ver = '{{.python_max_version}}'.split('.')
5050
for minor in range(int(min_ver[1]), int(max_ver[1]) + 1):
@@ -59,7 +59,7 @@ tasks:
5959
desc: Run tests with specific Python version
6060
cmds:
6161
- echo "Testing with Python {{.version}}..."
62-
- uv run --extra dev --python {{.version}} pytest --cov={{.package_name}} --cov-report=xml --cov-report=term-missing -v tests/
62+
- uv run --extra dev --python {{.version}} pytest --cov={{.package_name}} --cov-report=xml --cov-report=term-missing tests/ -v --tb=short
6363
test:watch:
6464
desc: Watch files and run tests
6565
cmds:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
]
88
license = "MIT"
99
readme = "README.md"
10-
requires-python = ">=3.12"
10+
requires-python = ">=3.10"
1111
dependencies = [
1212
"cookiecutter>=2.6.0",
1313
"click>=8.1.8",
@@ -36,7 +36,7 @@ docs = [
3636
repo-scaffold = "repo_scaffold.cli:cli"
3737

3838
[tool.setuptools.package-data]
39-
repo_scaffold = ["templates/**/*", "components/**/*", "languages/**/*", "schemas/**/*"]
39+
repo_scaffold = ["templates/**/*", "components/**/*"]
4040

4141
[build-system]
4242
requires = ["hatchling"]

repo_scaffold/components/airflow_docker/component.yaml

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

repo_scaffold/components/airflow_docker/files/docker/Dockerfile.j2

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

0 commit comments

Comments
 (0)