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

Improve lint tests #302

Merged
merged 17 commits into from
Oct 9, 2023
Merged

Improve lint tests #302

merged 17 commits into from
Oct 9, 2023

Conversation

153957
Copy link
Member

@153957 153957 commented Oct 8, 2023

Replace flake8/black by ruff for code style and formatting.
Add typos for spell checking.

Fix Python tests cleanup by disabling multiprocessing.

Copy link
Member

@davidfokkema davidfokkema left a comment

Choose a reason for hiding this comment

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

I've heard great things about ruff, nice! The quote situation does surprise me, though. Lots of double quotes are changed to single quotes. Is this ruff?

Copy link
Member

Choose a reason for hiding this comment

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

Black would change this from single quotes to double quotes... does ruff have very different style rules?

Copy link
Member Author

Choose a reason for hiding this comment

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

Black always prefers/uses double quotes unless you tell it to skip quote normalization, which I did when I applied black.
Ruff allows it to be configured, to tell it which
https://github.com/HiSPARC/publicdb/blob/testing-updates/pyproject.toml#L83-L87
I prefer single quotes, so I chose that.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I see!

Copy link
Member

Choose a reason for hiding this comment

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

Here, too. Double quotes to single quotes?

@153957 153957 merged commit f29df12 into master Oct 9, 2023
10 checks passed
@153957 153957 deleted the testing-updates branch October 9, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants