diff --git a/template/.vscode/settings.json b/template/.vscode/settings.json index b82679a..50f0dc0 100644 --- a/template/.vscode/settings.json +++ b/template/.vscode/settings.json @@ -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 diff --git a/template/justfile.jinja b/template/justfile.jinja index a1e0d08..59c8f0f 100644 --- a/template/justfile.jinja +++ b/template/justfile.jinja @@ -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: diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index f975cc4..d5b41a0 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -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"