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

Add and run ruff on all files #30

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

rruiter87
Copy link
Contributor

I started using ruff for my Python projects some time ago and I really like it. I automatically runs Python's formatter Black, isort and can automatically fix a whole host of flake-8 issues.

Currently it is annoying to develop new pre-commits, because of all the flake-8 violations. With this tool it takes care of most of it.

The disadvantage is that you have to run it once and it makes a lot of changes. Although these can be ignored as explained here.

Copy link
Member

@ZLLentz ZLLentz left a comment

Choose a reason for hiding this comment

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

I was aware of ruff as a better version of flake8 but I was not aware that it also supplanted black and isort. I haven't made an effort to switch to ruff in my other projects yet but maybe now I will.

I trust ruff/black but I reviewed the diff closely just to make sure.

Do you want this merged before or after #29 ?

@rruiter87
Copy link
Contributor Author

Before would be good. Then I can run ruff on the other PR before merging.

@ZLLentz ZLLentz merged commit 57ebc7e into pcdshub:master Jun 25, 2024
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.

2 participants