-
Tracked relative paths get formatted:
```
$ treefmt tracked.py
traversed 1 files
emitted 1 files for processing
formatted 1 files (1 changed) in 107ms
```
Untracked relative path get format…
-
**Describe the bug**
When passing files to the treefmt cli (e.g. as part of a pre-commit hook), subsequent files don't get formatted if a file before doesn't have a formatter configured.
**To Re…
-
treefmt refuses to format files relative to $PWD when I'm in a subdirectory of my project.
This works:
```
./ $ treefmt subdir/tracked.py
traversed 1 files
emitted 1 files for processing
for…
-
Here's what happens if I'm in some project and use a relative path to ask treefmt to format a file outside of the project:
```
proj/ $ treefmt --no-cache ../out-of-tree.py
traversed 0 files
emit…
-
**Describe the bug**
treefmt helpfully logs warnings when it doesn't know how to format a file:
```
$ treefmt test.py
WARN format: no formatter for path: test.py
traversed 1 files
emitted 1 …
-
**Context**
I believe treefmt 1.x was totally ignorant of VCS/git, and would happily format all files it could find (including stuff the `.git` directory!).
It's great that treefmt 2+ doesn't do…
-
https://github.com/numtide/treefmt/pull/450 introduced the idea that formatters are applied on a best-effort basis.
If any formatters fail, `treefmt` should still exit with an error code, which it…
-
Trying to inject Lix into `nix-unit` from nixpkgs (2.23.0 from ac2ff9a5d346dd2c5962ea4e6157046041135180) fails like this:
```
Found pkg-config: YES (/nix/store/02vzklfgfpaf457rq927fq3jj5hn133f-pkg…
-
I find myself using `nix shell nixpkgs#rustfmt -c cargo fmt` to format my code base. Either it's missing from the project config, or it's there, but there's a different way to do it that I'm not aware…
-
This part of the formatter spec is problematic:
> If, **and only if,** a file format has changed, the formatter MUST write the new content in place of the original file.
My understanding is that…