-
Notifications
You must be signed in to change notification settings - Fork 81
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
Can't format hidden / dotfiles #228
Comments
Can also replicate this with recent |
Ah, so maybe this is just a downstream effect of numtide/treefmt#153 |
What version of |
Yes, I started to wonder about this too. A few different versions in a few places, but generally pinning to nixpkgs 24.05, and pinning treefmt's inputs to that. So then |
You want to use treefmt2 instead. If you use treefmt-nix it will automatically use the latest version. |
This appears to be an issue for hidden justfiles, |
Describe the bug
Can't get
yamlfmt
(and probably other formatters) to process "hidden" / "dotfiles", i.e. files with a leading.
.This is particularly annoying for certain CI systems, where the primary configuration is in YAML with names like
.gitlab-ci.yml
.To Reproduce
treefmt-nix
programs.yamlfmt.enable = true
test.yaml
and a copy at.test.yaml
nix fmt
Expected behavior
Both are formatted
But only one is...
Additional
Have tried various combinations of global and per-formatter include / exclude overrides, but no joy!
The text was updated successfully, but these errors were encountered: