Skip to content

24 switch to ruff#25

Merged
nickmoreton merged 12 commits intomainfrom
24-switch-to-ruff
Dec 28, 2025
Merged

24 switch to ruff#25
nickmoreton merged 12 commits intomainfrom
24-switch-to-ruff

Conversation

@nickmoreton
Copy link
Copy Markdown
Contributor

@nickmoreton nickmoreton commented Dec 25, 2025

Summary

Replace black, flake8, and isort with ruff for faster, unified code formatting and linting.

Changes

  • pyproject.toml: Added ruff configuration (88 char line length, Python 3.10+) and updated dev dependencies
  • .pre-commit-config.yaml: Replaced three hooks with ruff and ruff-format
  • setup.cfg: Deleted (no longer needed)
  • CLAUDE.md: Updated documentation
  • Formatted one file: app/home/management/commands/create_sample_media.py

Validation

  • uv sync - ruff v0.14.10 installed
  • ruff check app/ - passed
  • ruff format --check app/ - passed
  • pre-commit run --all-files - passed

Migration Steps

uv sync
pre-commit install
pre-commit run --all-files

@nickmoreton nickmoreton linked an issue Dec 25, 2025 that may be closed by this pull request
@nickmoreton nickmoreton requested a review from Copilot December 25, 2025 21:43

This comment was marked as resolved.

@nm-examples nm-examples deleted a comment from claude bot Dec 26, 2025
@nickmoreton nickmoreton self-assigned this Dec 26, 2025
@nickmoreton nickmoreton merged commit fe3d08b into main Dec 28, 2025
2 checks passed
@nickmoreton nickmoreton deleted the 24-switch-to-ruff branch December 28, 2025 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch to ruff

2 participants