Skip to content

chore: migrate from flake8/black/isort/pyupgrade to ruff - #723

Merged
Aidan Holland (thehappydinoa) merged 1 commit into
mainfrom
chore/migrate-to-ruff
Aug 27, 2026
Merged

chore: migrate from flake8/black/isort/pyupgrade to ruff#723
Aidan Holland (thehappydinoa) merged 1 commit into
mainfrom
chore/migrate-to-ruff

Conversation

@thehappydinoa

@thehappydinoa Aidan Holland (thehappydinoa) commented Aug 27, 2026

Copy link
Copy Markdown
Member

Summary

Replaces ~10 dev dependencies with a single ruff installation for both linting and formatting.

Removed:

  • flake8 + flake8-black, flake8-comprehensions, flake8-docstrings, flake8-isort, flake8-pytest-style, flake8-simplify
  • black, blacken-docs
  • isort
  • pyupgrade
  • darglint (abandoned upstream)
  • pep8-naming

Added: ruff (covers all of the above)

Ignored rules (intentional):

  • E501 — ruff format is the source of truth for line length; remaining violations are unfixable literal strings/data
  • N818 — renaming CensysException* to *Error would be a breaking API change
  • PT028 — false positive on test utility helpers that aren't actual fixtures
  • E402 (examples only) — sys.path manipulation before imports is intentional in example scripts

Test plan

  • CI passes (ruff check + ruff format --check + mypy + pytest)
  • Pre-commit hooks pass locally ✅

🤖 Generated with Claude Code

Replaces ~10 dev dependencies (flake8 + plugins, black, blacken-docs,
isort, pyupgrade, darglint, pep8-naming) with ruff for linting and
formatting. Updates CI and pre-commit hooks accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@thehappydinoa
Aidan Holland (thehappydinoa) merged commit fbda7d3 into main Aug 27, 2026
12 checks passed
@thehappydinoa
Aidan Holland (thehappydinoa) deleted the chore/migrate-to-ruff branch August 27, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant