-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
treefmt: refactor, treefmt2, pipelines #1266
Conversation
d7e248f
to
8a507e7
Compare
@brianmcgee I do have a couple of questions. I don't understand why
With the rust version the verbose output would show the command and files, is that still possible?
|
I just checked out the branch and ran
About git, we no longer use git directly instead we use https://github.com/go-git/go-git. It looks like it's unable to read your local git state for some reason, possibly it's corrupt since it worked with a fresh clone for me. Can you try a fresh clone and see what happens on your side? Info level logging will show the pipelines:
Debug level doesn't show the command though. I am currently improving the logging, I can add that in.
|
Created numtide/treefmt#292 |
Seems to be an issue with my
Great, thanks. |
Seems the problem was |
Ok cool, I'll get that updated |
Switches go-git to master for now until a new release is cut. Related to: nix-community/infra#1266 Closes #293 Signed-off-by: Brian McGee <[email protected]>
Switches go-git to master for now until a new release is cut. Related to: nix-community/infra#1266 Fixes #293 Signed-off-by: Brian McGee <[email protected]>
Just cut a new release candidate with the improvements above: https://github.com/numtide/treefmt/releases/tag/v2.0.0-rc2 You can switch back to |
Thanks, I've opened a PR for this in nixpkgs: NixOS/nixpkgs#312559 Not sure how to get the editorconfig check to work with numtide/treefmt#297? It is a linter intended to be run against everything?
Lines 30 to 34 in 1a8c378
It also catches actionlint/prettier and mypy/ruff: f757770 TBH I think numtide/treefmt#297 a bit too strict, I don't want to have to put everything into a pipeline. |
Thanks for the PR, meant to create it myself but got distracted. This is quite a complex config, which is good for pushing the new pipelines approach. You raise an interesting point about editorconfig, and I don't have a good answer yet. I'll try and find some time this weekend to spend on coming up with an answer. |
Don't feel pressured to resolve this quickly. I've made with simple workaround for editorconfig so we can move forward with this PR as the treefmt pipelines are a good improvement. |
5b1cbaf
to
d259604
Compare
also move editorconfig to a separate check as it isn't currently compatible with treefmt pipelines
No description provided.