Skip to content

chore: Replace black and flake8 with ruff - #128

Merged
TheRealAgentK merged 2 commits into
masterfrom
feature/#126-ruff
Jan 12, 2026
Merged

chore: Replace black and flake8 with ruff#128
TheRealAgentK merged 2 commits into
masterfrom
feature/#126-ruff

Conversation

@TheRealAgentK

@TheRealAgentK TheRealAgentK commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Description 📝

Purpose:

Modernise provider, using ruff. Closes #126

Type of change

  • feat: New feature (non-breaking change which adds functionality)
  • Other type of change (specify)
  • This change requires a documentation update

Updates

  • Remove black and flake8 from dev dependencies
  • Add ruff as unified linter and formatter
  • Configure ruff in pyproject.toml with E, W, F, I rules
  • Remove .flake8 config file (now in pyproject.toml)
  • Update GitHub Actions workflow to use ruff
  • Fix import sorting issues detected by ruff
  • Reformat files to match ruff style

Author to check 👓

  • Project and all contained modules builds successfully
  • Self-/dev-tested
  • Unit/UI/Automation/Integration tests provided where applicable
  • Code is written to standards
  • Appropriate documentation written (code comments, internal docs)

- Remove black and flake8 from dev dependencies
- Add ruff as unified linter and formatter
- Configure ruff in pyproject.toml with E, W, F, I rules
- Remove .flake8 config file (now in pyproject.toml)
- Update GitHub Actions workflow to use ruff
- Fix import sorting issues detected by ruff
- Reformat files to match ruff style

Closes #126
@TheRealAgentK

Copy link
Copy Markdown
Contributor Author

Note: Please do NOT merge before the 6.0.2 release has been completed.

@miquelbeltran miquelbeltran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What was the issue with black and flake?

@TheRealAgentK
TheRealAgentK marked this pull request as draft January 12, 2026 08:46
@TheRealAgentK

Copy link
Copy Markdown
Contributor Author

Converted to draft after @miquelbeltran and I chatted about the PR.

ruff is a more modern (and faster) unified code quality tooling that the current combo of flake8 and black etc.

We'll get a third party opinion from a friend of us before merging.

@TheRealAgentK
TheRealAgentK marked this pull request as ready for review January 12, 2026 19:02
@TheRealAgentK
TheRealAgentK merged commit f2885f7 into master Jan 12, 2026
8 checks passed
@TheRealAgentK

Copy link
Copy Markdown
Contributor Author

We decided to go ahead with the PR after getting some additional feedback from a Python Foundation friend.

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.

Build: Replace flake8, black and isort with ruff

2 participants