-
Notifications
You must be signed in to change notification settings - Fork 265
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 pyproject fmt #1267
base: master
Are you sure you want to change the base?
Add pyproject fmt #1267
Conversation
Interesting, it broke what it was supposed to fix, the pyproject.toml! I'll try to figure out what is happening... |
792546b
to
1872af6
Compare
Found the problem and it may be a bug in the linter. xref.: tox-dev/pyproject-fmt#110 |
There is an opendap sever failure now that is unrelated. |
2bea66b
to
a805435
Compare
This one is ready for review. |
I've been increasing my use of pre-commit (+ .ci) lately, but I've not heard of pyproject-fmt until now. I'm unsure about it's inconsistency, however. For example, some sections have a 1-line space between and others don't, some have sorted keys, others don't. Some local tests that I tried with this branch, where I've re-arranged some items in the pyproject file will yield bad formats too, so I can't grasp what the tool is trying to do. |
a805435
to
4aaacf5
Compare
ed9b78b
to
cc67592
Compare
bba00d9
to
8cae84c
Compare
1d30b5e
to
85a76e9
Compare
85a76e9
to
9aa0af0
Compare
29db584
to
cbd485d
Compare
This should prevent a regression in #1265 and complements @mwtoews #1266.
Note that the use of pre-commits has a learning curve and while I would advocate to a even heavier use than just this one, I'm OK if this PR is closed in case folks don't want to go there. However, if you do, one can set it up locally and run
pre-commit
or use the pre-commit hook. Additionally one can enable pre-commit-ci and use thepre-commit.ci autofix
comment in the PR to fix it automatically. Enabling pre-commit-ci has the advantages of having this as a CI check and get the auto-updates for the hooks in the .pre-commit.yaml file.