The open-source AI voice studio. Clone, dictate, create.
move pyproject
James Pine89d6e364d4fe
diff --git a/backend/STYLE_GUIDE.md b/backend/STYLE_GUIDE.mdindex 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.tomlsimilarity index 90%rename from pyproject.tomlrename to backend/pyproject.tomlindex 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"