Skip to content

chore: replace flake8 and black with ruff - #89

Merged
WilliamBergamin merged 2 commits into
mainfrom
chore/replace-flake8-black-with-ruff
Sep 30, 2026
Merged

WilliamBergamin merged 2 commits into
mainfrom
chore/replace-flake8-black-with-ruff

Conversation

@WilliamBergamin

Copy link
Copy Markdown
Collaborator

Summary

Replaces flake8 (lint) and black (format) with ruff, which does both. This mirrors slackapi/bolt-python#1566 + #1567 and slackapi/python-slack-sdk#1954 + #1959, folded into one PR since the only Python here is tests/.

  • pyproject.toml: flake8 + black deps become ruff==0.16.4; [tool.black] becomes the same [tool.ruff] config as bolt/sdk (E, W, F, D with google convention, D100-D107 ignored), keeping line-length = 100.
  • .flake8 removed.
  • scripts/lint.sh runs ruff check + ruff format --check, so CI now gates on formatting (black was never checked in CI). format.sh, test.sh, install_all_and_run_tests.sh use ruff.
  • AGENTS.md, maintainers guide and the CI step name updated.

No Python source changes were needed: the existing tests already pass every rule.

Testing

  • ./scripts/lint.sh → All checks passed! / 4 files already formatted / Prettier clean
  • ./scripts/format.sh twice → no diff
  • ./scripts/install_all_and_run_tests.sh → 6 passed

Category

  • manifest.schema.json edit
  • /schema and/or its core components
  • Others (dev tooling)

Requirements

  • I've read and agree to the Code of Conduct.
  • I've run ./scripts/install_all_and_run_tests.sh after making the changes.

🤖 Generated with Claude Code

Ports the bolt-python (#1566, #1567) and python-slack-sdk (#1954, #1959)
migration in one change, since the only Python here is the tests/ folder.
ruff check and ruff format replace flake8 and black; lint.sh now also
gates on ruff format --check. Existing sources need no changes.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Comment thread scripts/install_all_and_run_tests.sh Outdated
Comment thread scripts/install_all_and_run_tests.sh Outdated
Comment thread scripts/test.sh Outdated
Comment thread scripts/test.sh Outdated
Comment thread pyproject.toml Outdated
test.sh and install_all_and_run_tests.sh now delegate formatting to
scripts/format.sh instead of inlining ruff/prettier, so the formatting
steps live in one place. Also drops an unneeded pyproject.toml comment.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@WilliamBergamin
WilliamBergamin merged commit 523fbc9 into main Sep 30, 2026
4 checks passed
@WilliamBergamin
WilliamBergamin deleted the chore/replace-flake8-black-with-ruff branch September 30, 2026 16:58
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.

1 participant