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

Switch code formatting and linting to ruff #398

Merged
merged 39 commits into from
May 29, 2024
Merged

Conversation

markbandstra
Copy link
Member

Move all code formatting and linting to using ruff, which is much faster than the existing tools and includes all of the functionality of black, flake8, isort, and others.

Fixes #397

Seemed to be causing confusing errors by formatting code during CI and then throwing errors on the formatted code.
All changes convert old-style string formatting to f-strings
Missed this earlier. Also it probably should have been in req-dev.
@markbandstra
Copy link
Member Author

@cosama I made some further changes since you approved, could you take a second look? Also interested if @jvavrek has any feedback.

README.md Outdated Show resolved Hide resolved
becquerel/tools/materials.py Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
tests/isotope_qty_test.py Show resolved Hide resolved
becquerel/io/h5.py Show resolved Hide resolved
@markbandstra markbandstra merged commit a2c38e4 into main May 29, 2024
22 checks passed
@markbandstra markbandstra deleted the switch-linting-to-ruff branch May 29, 2024 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider moving all linting and formatting to ruff
3 participants