Closed swryan closed 2 months ago
Added a pre-commit configuration to enable automatic linting with ruff.
pre-commit
[test]
pre-commit install
pre-commit run
pre-commit run --all
ruff
pre-commit autoupdate
autoupdate
Also:
#noqa
f
Exception
assert_partials
None
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
coverage: 93.852% (-0.1%) from 93.981% when pulling 66d2827b0a6ca49136cd1a98c24ca9104b2f9628 on swryan:ruff into e90f58799fcfb94f9fc29ada066c044c78c6205a on OpenMDAO:master.
Summary
Added a pre-commit configuration to enable automatic linting with ruff.
pre-commit
has been added as a[test]
dependency.pre-commit install
command in their development environmentpre-commit run
pre-commit run --all
ruff
version is necessarily fixed and should be updated periodically viapre-commit autoupdate
ruff
autoupdate
command should be usedAlso:
#noqa
flags added when deemed appropriatef
flags removed from strings that didn't need to be f-stringsException
to some naked exceptsassert_partials
to testRelated Issues
Backwards incompatibilities
None
New Dependencies
None