-
Notifications
You must be signed in to change notification settings - Fork 141
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
Add mdformat to pre-commit #1267
Add mdformat to pre-commit #1267
Conversation
Codecov ReportBase: 83.45% // Head: 83.45% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #1267 +/- ##
=======================================
Coverage 83.45% 83.45%
=======================================
Files 31 31
Lines 4224 4224
Branches 620 620
=======================================
Hits 3525 3525
Misses 523 523
Partials 176 176 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pure python and the other noted reasons are great reasons to use this. Thanks for sharing that this exists!
Lets just workout if we can remove the action or remove pre-commit CI - I think we can ...
It seems mdformat also has MyST support. Should we look into this since we use that render our docs? |
e56b8bd
to
08d01d0
Compare
I added the myst formatter, ran it, and it made a few minor changes to escape curly braces. One of them was in the docs, changing a fence
There are some issues (executablebooks/mdformat-myst#13) related to this, and it looks like the escaping is expected behaviour. So I'd recommend not adding this formatter in as it will would always attempt to reformat this fence syntax, causing issues with the docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome then. Thanks for this and digging into everything.
#1183 suggests adding "prettier" markdown formatter to pre-commit/ci, not sure if that means just any formatter to make markdown prettier or specifically the formatter called prettier 😛
This PR:
pre-commit run --all
)Closes #1183