From 89d6e364d4fed0bab7e1ad553580d1412645be5e Mon Sep 17 00:00:00 2001 From: James Pine Date: Mon, 16 Mar 2026 01:48:26 -0700 Subject: [PATCH] move pyproject --- backend/STYLE_GUIDE.md | 2 +- pyproject.toml => backend/pyproject.toml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) rename pyproject.toml => backend/pyproject.toml (90%) diff --git a/backend/STYLE_GUIDE.md b/backend/STYLE_GUIDE.md index 225f763d..c6a75672 100644 --- a/backend/STYLE_GUIDE.md +++ b/backend/STYLE_GUIDE.md @@ -1,6 +1,6 @@ # Python Style Guide -Target: **Python 3.12+** | Formatter/Linter: **Ruff** | Config: `pyproject.toml` (project root) +Target: **Python 3.12+** | Formatter/Linter: **Ruff** | Config: `backend/pyproject.toml` This guide codifies the conventions used across the backend, and prescribes the target style for code written during the refactor (Phases 3-6). Existing code should be migrated incrementally -- don't reformat entire files in unrelated PRs. diff --git a/pyproject.toml b/backend/pyproject.toml similarity index 90% rename from pyproject.toml rename to backend/pyproject.toml index 95d390e2..79877833 100644 --- a/pyproject.toml +++ b/backend/pyproject.toml @@ -10,12 +10,12 @@ requires-python = ">=3.12" [tool.ruff] target-version = "py312" line-length = 120 -src = ["backend"] +src = ["."] # Files/dirs to skip entirely. extend-exclude = [ - "backend/voicebox-server.spec", - "backend/build_binary.py", + "voicebox-server.spec", + "build_binary.py", ] [tool.ruff.lint] @@ -54,12 +54,12 @@ ignore = [ # Per-file rule overrides. [tool.ruff.lint.per-file-ignores] # Tests can use assert, print, and magic values freely. -"backend/tests/**" = ["S101", "T201", "PLR2004", "ERA001"] +"tests/**" = ["S101", "T201", "PLR2004", "ERA001"] # __init__.py re-exports are expected to have unused imports. "**/__init__.py" = ["F401"] # Entry points and scripts legitimately use print. -"backend/server.py" = ["T201"] -"backend/main.py" = ["T201"] +"server.py" = ["T201"] +"main.py" = ["T201"] [tool.ruff.lint.isort] known-first-party = ["backend"] @@ -77,5 +77,5 @@ docstring-code-format = true # --------------------------------------------------------------------------- [tool.pytest.ini_options] -testpaths = ["backend/tests"] +testpaths = ["tests"] asyncio_mode = "auto"