Repository navigation
Use pyproject-fmt instead of pretty-format-toml - #1868
Conversation
|
Thank you for contributing to PlasmaPy! The project's future depends deeply on contributors like you, so we deeply appreciate it! 🌱 The following checklist will be used by the code reviewer to help guide the code review process.
|
Codecov ReportBase: 98.31% // Head: 98.31% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #1868 +/- ##
=======================================
Coverage 98.31% 98.31%
=======================================
Files 95 95
Lines 8372 8372
=======================================
Hits 8231 8231
Misses 141 141 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
Thank you for the quick review! Happy to get this in to make pre-commit happy. |
Co-authored-by: Dominik Stańczak-Marikin <[email protected]>
|
It appears we no longer use |
Description
This PR adds a pre-commit hook using
pyproject-fmtand drops the pre-commit hook usingpretty-format-toml.Motivation and context
It looks like the only TOML file that we have is our
pyproject.toml, so it makes sense to use a tool that has more specific and standardized formatting forpyproject.tomls. (Or is itpyprojects.toml? I don't know what the plural ofpyproject.tomlis.)We're also running into a problem with our pre-commit config due to a new inconsistency upstream of
pretty-format-toml. Removingpretty-format-tomlwill address this problem (though that issue will probably get fixed in a few days anyway).This time I did not hear about this tool from a podcast! I read about it in the show notes of a podcast instead. 😬