-
Notifications
You must be signed in to change notification settings - Fork 456
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
Added toml-sort
tool
#1972
Added toml-sort
tool
#1972
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1972 +/- ##
==========================================
+ Coverage 82.48% 82.49% +0.01%
==========================================
Files 66 66
Lines 8165 8147 -18
==========================================
- Hits 6735 6721 -14
+ Misses 1430 1426 -4 ☔ View full report in Codecov by Sentry. |
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.
Thanks for the suggestion @jamesbraza :) If we're going for toml-sort
, let's fully embrace it. What I would do:
- add
toml-sort
to setup.py (alongruff
) - add
toml-sort --in-place pyproject.toml
to themake style
command (in makefile) - add
toml-sort --check pyproject.toml
to themake quality
command (in makefile) - add
toml-sort --check pyproject.toml
to thepython-quality.yml
github workflow file
And I think that's it. Thanks in advance!
(also since #1971 has been merged you have a small merge conflict to resolve)
Hi @Wauplin, thanks for suggestions and being open! I think running To share, this is something I think the best path forward would be making two
Then you just change quality:
pre-commit run --all-files --config .pre-commit-config-check.yaml
style:
pre-commit run --all-files What are your thoughts on this? |
While I understand the concern of not slowing down too much the developer experience, I still think it's fine to run it on every |
Alright, I rebased the tool atop For the most part, I guess I think adding three I will leave this PR in your hands. I think it's fine to merge as-is, and just know the sorting will eventually go stale unless integrated in CI. |
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.
Thanks @jamesbraza and understand you concern about running toml-sort for nothing. Let's merge this and if we really want to run toml-sort all the time in the future, we'll do.
Thanks again for the suggested updates in the tooling! It's easy not to think about the tooling when maintaining a project on the long run but it's still important! 😄
Added the
toml-sort
topre-commit
to keep things clean inpyproject.toml