Skip to content

build: replace black and flake8 with ruff - #53

Merged
WilliamBergamin merged 5 commits into
pyprojectfrom
ruff
Nov 17, 2026
Merged

WilliamBergamin merged 5 commits into
pyprojectfrom
ruff

Conversation

@WilliamBergamin

Copy link
Copy Markdown
Contributor

Summary

This pull request replaces black and flake8 with the ruff config shared by the other Python repos. It's PR 2 of 4 and stacks on #52.

  • Adds scripts/format.sh, scripts/lint.sh, and a Lint CI job, and removes .flake8 and the flake8 workflow
  • Commit 2 is only ./scripts/format.sh output and can be skipped in review, since black was never actually run here
  • Commit 3 hand-fixes the docstrings that pydocstyle (google convention) flagged

Testing

  • ./scripts/lint.sh passes
  • Skim commit 3 for docstring rewording

Requirements

🤖 Generated with Claude Code

WilliamBergamin and others added 3 commits November 16, 2026 12:48
Use the ruff config shared by python-slack-sdk, bolt-python, and
python-slack-hooks, with format.sh and lint.sh scripts and a Lint CI job.
This removes the .flake8 config and the flake8 workflow.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Output of ./scripts/format.sh with no other changes: ruff format plus the
safe ruff check fixes (one import per line, docstring blank lines, an
unused import).

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Split each docstring summary onto its own line with a blank line after it,
end summaries with a period, and document the missing args, so the google
convention checks pass with the same ignores as the other python repos.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@WilliamBergamin WilliamBergamin mentioned this pull request Nov 16, 2026
3 tasks done
@codecov-commenter

codecov-commenter commented Nov 16, 2026 •

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@mwbrooks mwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far, I'll approve once it's ready!

@WilliamBergamin
WilliamBergamin marked this pull request as ready for review November 17, 2026 19:37
@WilliamBergamin
WilliamBergamin requested a review from a team as a code owner November 17, 2026 19:37
@WilliamBergamin
WilliamBergamin merged commit 34d6964 into pyproject Nov 17, 2026
13 of 14 checks passed
@WilliamBergamin
WilliamBergamin deleted the ruff branch November 17, 2026 19:43
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.

3 participants