Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
# .pre-commit-config.yaml — a floating ruff can promote rules and redden CI.
# Keep this in lockstep with the pre-commit rev and pyproject's `dev` extra.
- name: Install dev tools
run: python -m pip install "ruff==0.14.10" "pytest>=8.0" boto3 defusedxml Pillow feedparser mutagen numpy opencv-python-headless
run: python -m pip install "ruff==0.16.10" "pytest>=8.0" boto3 defusedxml Pillow feedparser mutagen numpy opencv-python-headless

# resolve_font's Linux fallbacks are DejaVu and Liberation. Installed
# explicitly rather than assumed from the runner image: which fonts ship in
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ exclude: '^skills/daily-podcast/refs/'

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.16.10
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ need:

```bash
# Tooling only (lint + tests) — works on any platform, no MLX:
pip install ruff==0.14.10 "pytest>=8.0" boto3
pip install ruff==0.16.10 "pytest>=8.0" boto3

# Or, for a full editable env on an Apple Silicon Mac:
pip install -e ".[dev]"
Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ video = [
dev = [
"pytest>=8.0",
# ruff is pinned exactly (not a floor) so lint results are reproducible across
# local dev, the pre-commit rev (v0.14.10), and CI — a linter's version decides
# local dev, the pre-commit rev (v0.16.10), and CI — a linter's version decides
# pass/fail. Bump all three sites together.
"ruff==0.14.10",
"ruff==0.16.10",
]

[project.urls]
Expand All @@ -75,6 +75,12 @@ target-version = "py310"
# never let a formatter or whitespace rule touch the refs.
extend-exclude = ["skills/daily-podcast/refs"]

[tool.ruff.format]
# ruff >= 0.16 also formats Python code blocks inside Markdown. The docs/ plans and
# specs keep hand-aligned snippets (column-aligned trailing comments), so the format
# gate stays Python-only, as it was under 0.14.
exclude = ["*.md"]

[tool.ruff.lint]
# Small ruleset: pycodestyle (E/W), pyflakes (F), import-sort (I), pyupgrade (UP),
# bugbear (B). No D (docstrings) — the codebase uses module-level docstrings only.
Expand Down
Loading