diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index ce48fa3..8021207 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -44,7 +44,10 @@ jobs: - uses: actions/checkout@v4 - name: Install Python deps - run: pip install -r requirements.txt pytest pytest-asyncio "ruff>=0.9,<1.0" + # ruff is pre-installed in the python-ci runner image (see + # CI-Runner/CI-python/Dockerfile's RUFF_VERSION). Per FabledRulebook + # forgejo.md, toolchain versions live on the runner image, not here. + run: pip install -r requirements.txt pytest pytest-asyncio - name: Ruff lint run: ruff check backend/ tests/ alembic/ diff --git a/ruff.toml b/ruff.toml index 79bdb97..b8603a4 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,9 +1,4 @@ -target-version = "py313" -# Note: runtime is Python 3.14, but the python-ci runner image ships -# ruff 0.9.7 which only knows target-version up to py313. Bumping the -# runner image's RUFF_VERSION to 0.13+ would let us flip this back to -# py314; until then py313 is the highest ruff accepts here. Code still -# runs on 3.14; we just don't get UP suggestions for 3.14-only optimizations. +target-version = "py314" line-length = 100 [lint]