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

chore: reformat multi-line statements #2070

Merged

Conversation

mwtoews
Copy link
Contributor

@mwtoews mwtoews commented Nov 25, 2024

This PR refactors some multi-line statements. This was mostly automated by temporarily toggling skip-magic-trailing-comma = true in ruff.toml, then selecting some commits that condense multi-line statements to single, while rejecting other statements that are better represented over multiple lines. There was no exact rule-of-thumb for the process, except to try and maintain the same style in surrounding code blocks.

Note that while there are fewer lines with this PR, there are no functional changes.

@mwtoews mwtoews force-pushed the reformat-multi-line-statements branch from 8d97380 to f021029 Compare November 25, 2024 20:23
@wpbonelli wpbonelli merged commit cc7f930 into MODFLOW-USGS:develop Nov 25, 2024
26 checks passed
@mwtoews mwtoews deleted the reformat-multi-line-statements branch November 25, 2024 21:43
@mwtoews
Copy link
Contributor Author

mwtoews commented Nov 25, 2024

Triple-check of changes complete. A future PR should amend the following to .git-blame-ignore-revs:

# reformat multi-line statements (#2070)
cc7f930b961345536529942fc57db0c515a1f7fc

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