Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion template/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"python.testing.pytestEnabled": true,
"python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
"mypy.runUsingActiveInterpreter": true,
"ruff.configuration": ".config/ruff.toml",
"mypy.configFile": ".config/mypy.ini",
"conventionalCommits.emojiFormat": "emoji",
"conventionalCommits.promptScopes": false
Expand Down
6 changes: 3 additions & 3 deletions template/justfile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ test-python:
# Check Python code for any errors that need manual attention
check-python:
# Check formatting
uvx ruff check . --config .config/ruff.toml
uvx ruff check .
# Check types
uv run mypy --pretty . --config-file .config/mypy.ini

# Reformat Python code to match coding style and general structure
format-python:
uvx ruff check --fix . --config .config/ruff.toml
uvx ruff format . --config .config/ruff.toml
uvx ruff check --fix .
uvx ruff format .

# Format Markdown files
format-md:
Expand Down
3 changes: 3 additions & 0 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ build-backend = "hatchling.build"
# - Create the coverage report in XML (for badge), terminal, and HTML
# - Trigger failure if below 90% code coverage
addopts = "--tb=short --import-mode=importlib --cov=src --no-cov-on-fail --cov-report=term --cov-report=xml --cov-report=html --cov-fail-under=90"

[tool.ruff]
extend = ".config/ruff.toml"
Loading