You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can see it's considered TOML, so toml-sort will pick it up. However, poetry.lock is made programmatically, so it should not be touched by toml-sort.
How can one skip a particular file? I don't see anything in toml-sort --help that will exclude or skip files.
Is the only route right now to use an exclude within pre-commit?
The text was updated successfully, but these errors were encountered:
Oh thanks for that, yeah that's a fix for pre-commit usage indeed. I think though then it wouldn't apply to users directly invoking toml-sort from the CLI (outside of pre-commit).
Do you know of a way to configure exclusions from within the pyproject.toml config's tool.tomlsort?
I am using
toml-sort==0.23.1
with the belowpyproject.toml
config:I integrate
toml-sort
into mypre-commit
like so:Running
identify
to see the associations onpoetry.lock
:We can see it's considered TOML, so
toml-sort
will pick it up. However,poetry.lock
is made programmatically, so it should not be touched bytoml-sort
.How can one skip a particular file? I don't see anything in
toml-sort --help
that will exclude or skip files.Is the only route right now to use an
exclude
withinpre-commit
?The text was updated successfully, but these errors were encountered: