Commit a59e211d authored by Jan Reimes's avatar Jan Reimes
Browse files

Initial commit from copier-uv-plus

parents
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
[tasks.dev]
description = "Install development dependencies"
run = ["uv sync -U --dev --all-extras --all-groups"]
+9 −0
Original line number Diff line number Diff line

[tasks.docs]
description = "Build documentation"
run = [
	"echo 🚀 Building documentation with Zensical",
	"uv run zensical build",
	"echo 📚 Documentation built successfully in site/",
]
+17 −0
Original line number Diff line number Diff line
[tasks.format]
description = "Format code (ruff, isort, undersort)"
run = [
	"echo 🚀 Formatting Python code with undersort",
	"uv run undersort src tests",
	"echo 🚀 Formatting Python code with ruff",
	"uv run ruff format src tests",
	"echo 🚀 Sorting imports with ruff (isort-like)",
	"uv run ruff check src tests --select I --fix",
	"echo 🚀 Formatting markdown files with mdformat",
	"uv run mdformat .",
	"echo 🚀 Code and docs formatted successfully",
]

[tasks.format-md]
description = "Format Markdown files"
run = "uv run mdformat src/ docs/ tests/"
+13 −0
Original line number Diff line number Diff line
[tasks.lint]
description = "Run linter (ty type checker + ruff + codespell)"

run = [
	"echo 🚀 Running ruff linter",
	'uv run ruff check src tests --fix --unsafe-fixes',
	"echo 🚀 Running type checker ty",
	'uv run ty check src tests',
]

[tasks.spell]
description = "Run codespell spell checker"
run = ["echo 🚀 Running codespell", "uv run codespell ."]
+22 −0
Original line number Diff line number Diff line
[tasks.test]
description = "Run tests with coverage"
run = [
	"uv run pytest --cov=pdf_remote_converter",
]
sources = ["src/**/*.py", "tests/**/*.py"]
outputs = ["htmlcov/", ".coverage"]

[tasks.all]
description = "Run all quality checks"

depends = ["test", "lint", "spell", "format"]


depends_post = ["docs"]


[tasks.clean]
description = "Clean build artifacts"
run = [
	"rm -rf build dist *.egg-info .pytest_cache .coverage htmlcov docs/_build",
]