Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace flake8/pep8 with ruff #7436

Merged
merged 5 commits into from
Feb 28, 2024
Merged

Replace flake8/pep8 with ruff #7436

merged 5 commits into from
Feb 28, 2024

Conversation

Mic92
Copy link
Contributor

@Mic92 Mic92 commented Feb 15, 2024

Remove this paragraph

If you don't remove this paragraph from the pull request description, this means you didn't read our contributor documentation, and your patch will need more back and forth before it can be accepted!

Please have a look at our developer documentation before submitting your Pull Request.

http://docs.buildbot.net/latest/developer/quickstart.html

And especially:
http://docs.buildbot.net/latest/developer/pull-request.html

Contributor Checklist:

  • I have updated the unit tests
  • I have created a file in the newsfragments directory (and read the README.txt in that directory)
  • I have updated the appropriate documentation

select = ["I"]
select = ["W", "E", "F", "I"]
ignore = [
"E711", # comparison to None should be 'if cond is None:'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Turns out a lot of former disabled checks are not in ruff or do not need to be ignored.


status "merging against first commit after autopep8 and take our version when there are conflicts"
git merge $POSTPEP8
# autopep8 takes 1h30 to run on the whole codebase, so let git resolve the obvious merge conflicts.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Current ruff is faster than I can type it in the terminal. So I guess this script is no longer needed.

@Mic92 Mic92 changed the title Drop flake8 Replace flake8/pep8 with ruff Feb 15, 2024
@Mic92 Mic92 mentioned this pull request Feb 16, 2024
3 tasks
@p12tic
Copy link
Member

p12tic commented Feb 24, 2024

Rebased.

@p12tic p12tic merged commit 9cda9ad into buildbot:master Feb 28, 2024
34 of 35 checks passed
@Mic92 Mic92 deleted the drop-flake8 branch March 4, 2024 06:56
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.

None yet

2 participants