From 354fdda9b5f3654b31dfed8334dc435427740654 Mon Sep 17 00:00:00 2001 From: William Valentin Date: Mon, 28 Jul 2025 13:38:47 -0700 Subject: [PATCH] Add Ruff configuration for linting and formatting; set target version and exclusions --- pyproject.toml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index fed38d4..ad5ed21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,29 @@ dependencies = [ [dependency-groups] dev = ["pre-commit>=4.2.0", "pyinstaller>=6.14.2", "ruff>=0.12.5"] +[tool.ruff] +target-version = "py313" # Target Python 3.13 +exclude = [ + ".csv", + ".log", + ".md", + ".pyc", + ".pyo", + ".pyd", + ".pkl", + ".sqlite3", + ".git", + ".github", + ".idea", + ".vscode/*", + ".pytest_cache", + ".mypy_cache", + ".ruff_cache", + ".tox", + ".venv/*", + "tests/*", +] + [tool.ruff.lint] select = [ # pycodestyle @@ -33,6 +56,8 @@ select = [ [tool.ruff.format] docstring-code-format = true +quote-style = "double" # Use double quotes for strings (like Black) +indent-style = "space" # Use spaces for indentation [tool.ruff.lint.pycodestyle] max-line-length = 88