$ treefmt untracked.py
traversed 1 files
emitted 1 files for processing
formatted 1 files (0 changed) in 119ms
Tracked absolute paths get skipped:
$ treefmt $(realpath tracked.py)
Error: path /home/jeremy/tmp/2024-10-12-pyhack-1/tracked.py not found within the tree root /home/jeremy/tmp/2024-10-12-pyhack-1
Untracked absolute paths get skipped:
$ treefmt $(realpath untracked.py)
Error: path /home/jeremy/tmp/2024-10-12-pyhack-1/untracked.py not found within the tree root /home/jeremy/tmp/2024-10-12-pyhack-1
Tracked relative paths get formatted:
Untracked relative path get formatted (thanks @brianmcgee! this works now because of https://github.com/numtide/treefmt/pull/438):
Tracked absolute paths get skipped:
Untracked absolute paths get skipped:
To Reproduce
Here's the setup for the above commands:
Expected behavior
I'd expect treefmt to format these files.
System information
See above. I'm using 659aa0f.