chore: consolidate to single ruff config in root pyproject.toml
All checks were successful
CI / test-cli (push) Successful in 11s
CI / test-sqlmesh (push) Successful in 14s
CI / test-web (push) Successful in 14s
CI / tag (push) Successful in 2s

- Merge web ruff settings (select E/F/I/UP, line-length 100) into root config
- Remove [tool.ruff] section from web/pyproject.toml
- Remove "web" from root ruff exclude list
- Simplify pre-commit hook to one command: ruff check .
- Update CI to use: uv run ruff check . (from repo root)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-28 12:21:01 +01:00
parent 42c1309b20
commit c8b86569ff
14 changed files with 29 additions and 37 deletions

View File

@@ -23,8 +23,7 @@ def admin_required(f):
async def decorated(*args, **kwargs):
if "admin" not in (g.get("user") or {}).get("roles", []):
await flash("Admin access required.", "error")
from quart import redirect as _redirect
from quart import url_for as _url_for
from quart import redirect as _redirect, url_for as _url_for
return _redirect(_url_for("auth.login"))
return await f(*args, **kwargs)
return decorated

View File

@@ -105,8 +105,7 @@ def create_app() -> Quart:
# Health check
@app.route("/health")
async def health():
from .analytics import _db_path as serving_db_path
from .analytics import fetch_analytics
from .analytics import _db_path as serving_db_path, fetch_analytics
from .core import fetch_one
result = {"status": "healthy", "sqlite": "ok", "duckdb": "ok"}
try:

View File

@@ -13,8 +13,7 @@ import os
import sys
from dotenv import load_dotenv
from paddle_billing import Client as PaddleClient
from paddle_billing import Environment, Options
from paddle_billing import Client as PaddleClient, Environment, Options
from paddle_billing.Entities.Shared import CurrencyCode, Money, TaxCategory
from paddle_billing.Resources.Prices.Operations import CreatePrice
from paddle_billing.Resources.Products.Operations import CreateProduct