Skip to content

Commit 3812113

Browse files
authored
refactor: 🔧 set path to .config/ruff.toml in pyproject.toml, not via --config (#312)
1 parent 7530007 commit 3812113

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎template/.vscode/settings.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"python.testing.pytestEnabled": true,
3636
"python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
3737
"mypy.runUsingActiveInterpreter": true,
38-
"ruff.configuration": ".config/ruff.toml",
3938
"mypy.configFile": ".config/mypy.ini",
4039
"conventionalCommits.emojiFormat": "emoji",
4140
"conventionalCommits.promptScopes": false

‎template/justfile.jinja‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ test-python:
5454
# Check Python code for any errors that need manual attention
5555
check-python:
5656
# Check formatting
57-
uvx ruff check . --config .config/ruff.toml
57+
uvx ruff check .
5858
# Check types
5959
uv run mypy --pretty . --config-file .config/mypy.ini
6060

6161
# Reformat Python code to match coding style and general structure
6262
format-python:
63-
uvx ruff check --fix . --config .config/ruff.toml
64-
uvx ruff format . --config .config/ruff.toml
63+
uvx ruff check --fix .
64+
uvx ruff format .
6565

6666
# Reformat Python dostrings
6767
format-docstrings:

‎template/pyproject.toml.jinja‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ build-backend = "hatchling.build"
5656
# - Create the coverage report in XML (for badge), terminal, and HTML
5757
# - Trigger failure if below 90% code coverage
5858
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"
59+
60+
[tool.ruff]
61+
extend = ".config/ruff.toml"

0 commit comments

Comments
 (0)