From e7e9cfab5d51dae0154f4dd85430a844e58da5a1 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Mon, 6 Jul 2026 19:15:26 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=94=A7=20set=20path=20to=20`.?= =?UTF-8?q?config/ruff.toml`=20in=20`pyproject.toml`,=20not=20via=20`--con?= =?UTF-8?q?fig`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/.vscode/settings.json | 1 - template/justfile.jinja | 6 +++--- template/pyproject.toml.jinja | 3 +++ 3 files changed, 6 insertions(+), 4 deletions(-) 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"