Matt Alexander
52d8c48ec0
Update nixpkgs.toml
2024-07-22 16:05:10 -05:00
Matt Alexander
17c1785d56
Update treefmt.toml
2024-07-22 16:00:03 -05:00
mergify[bot]
dabe2aa4cb
Merge pull request #356 from numtide/dot-treefmt-toml
...
gh-pages / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
gh-pages / deploy (push) Has been cancelled
feat: search for .treefmt.toml
2024-07-21 10:40:10 +00:00
zimbatm
bc1ae33535
feat: search for .treefmt.toml
...
This restores treefmt v1 compatibility by also searching for the dot
prefixed version of the config file.
Fixes #355
2024-07-21 12:14:06 +02:00
mergify[bot]
6df86ef974
Merge pull request #354 from numtide/prj-root
...
gh-pages / build (push) Waiting to run
gh-pages / deploy (push) Blocked by required conditions
golangci-lint / lint (push) Waiting to run
fix(cli): restore PRJ_ROOT env var
2024-07-20 06:57:56 +00:00
zimbatm
43c2071975
fix(cli): restore PRJ_ROOT env var
...
PRJ_ROOT is coming from the https://github.com/numtide/prj-spec and was
used in treefmt 1.x
Fixes #353
2024-07-20 08:55:49 +02:00
mergify[bot]
debc3e49df
Merge pull request #347 from numtide/dependabot/github_actions/actions/checkout-4
...
gh-pages / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
gh-pages / deploy (push) Has been cancelled
chore(deps): bump actions/checkout from 3 to 4
2024-07-10 20:12:29 +00:00
mergify[bot]
18e0ae2ee7
Merge branch 'main' into dependabot/github_actions/actions/checkout-4
2024-07-10 20:11:56 +00:00
Brian McGee
5afe6441e6
Merge pull request #348 from numtide/fix/relative-path-resolution
...
gh-pages / build (push) Waiting to run
gh-pages / deploy (push) Blocked by required conditions
golangci-lint / lint (push) Waiting to run
fix: relative path resolution in filesystem walker
2024-07-10 11:58:48 +01:00
Brian McGee
0953dd58f2
feat: refactor relative path function for git walker
...
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-09 19:45:38 +01:00
Brian McGee
0a8ffe0c63
feat: move filtering of directories and symlinks into walker implementations
...
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-09 19:21:09 +01:00
Brian McGee
ff8b1ed367
feat: refactor relative path function for filesystem walker
...
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-09 19:12:06 +01:00
Brian McGee
a018c297d9
fix: relative path resolution in filesystem walker
...
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-09 13:41:28 +01:00
dependabot[bot]
fef1caf33f
chore(deps): bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-08 17:02:06 +00:00
Brian McGee
65152cb373
Merge pull request #345 from numtide/fix/fail-on-change
...
gh-pages / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
gh-pages / deploy (push) Has been cancelled
fix: use second precision when comparing file mod times
2024-07-07 11:17:11 +01:00
Brian McGee
85ce0a2f74
fix: use second precision when comparing file mod times
...
We were using whatever precision the underlying file system was giving us, and in some cases that can be very detailed. Some formatters mess with the mod time, but not to the same precision (e.g. dos2unix).
POSIX also specifies that mod time should be EPOCH (second) precision.
This change brings us back in line with how 1.x worked, and should resolve issues with false fail on change errors.
2024-07-06 17:38:43 +01:00
Brian McGee
23e563b239
Merge pull request #344 from numtide/fix/no-cache
...
gh-pages / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
gh-pages / deploy (push) Has been cancelled
fix: --no-cache
2024-07-05 22:16:05 +01:00
Brian McGee
42decbfafb
fix: --no-cache
...
Separates out the logic for detecting changes from the logic for updating the cache, fixing the case where both `--fail-on-change` and `--no-cache` are enabled.
Signed-off-by: Brian McGee <brian@bmcgee.ie>
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-05 21:52:34 +01:00
Brian McGee
6776b9f095
Update cli/format.go
...
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2024-07-05 21:23:13 +01:00
Brian McGee
b2000dc1ec
Update cli/format.go
...
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2024-07-05 18:26:13 +01:00
mergify[bot]
be50beb584
Merge pull request #340 from numtide/feat/reduce-stats-time-precision
...
gh-pages / build (push) Waiting to run
gh-pages / deploy (push) Blocked by required conditions
golangci-lint / lint (push) Waiting to run
Improve summary stats
2024-07-05 15:22:10 +00:00
Brian McGee
e5e1c9d326
doc: update summary statistics examples
...
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-05 16:20:35 +01:00
Brian McGee
631cf04fff
chore: remove console.log in vitepress config
...
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-05 16:18:18 +01:00
Brian McGee
da7b015190
feat: improve summary stats
...
Close #340
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-05 16:17:26 +01:00
Brian McGee
a64214526e
feat: display elapsed time to nearest millisecond
...
Close #337
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-05 16:17:26 +01:00
Brian McGee
9bbc49a0bc
Merge pull request #341 from numtide/feat/versioned-docs
...
feat: simple versioned docs
2024-07-05 16:16:38 +01:00
Brian McGee
33a7bba5b1
fix: --no-cache
...
Separates out the logic
for detecting changes from the logic for updating the cache, fixing the case where both `--fail-on-change` and `--no-cache`
are enabled.
Closes #343
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-05 16:11:22 +01:00
Brian McGee
d9f413a169
feat: simple versioned docs
...
It's a little brute force,
but since we have a small amount of docs currently it should help us in the near term
to avoid
releasing doc updates for features that have not been released yet.
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-04 14:40:41 +01:00
Brian McGee
4cc7e00488
refine github workflows ( #331 )
...
gh-pages / build (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
gh-pages / deploy (push) Has been cancelled
* ci: add golangci-lint workflow
It doesn't conform to the treefmt spec so we run it here to catch any issues.
* ci: switch to buildbot
---------
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-03 19:14:42 +01:00
mergify[bot]
45cc82c105
Merge pull request #330 from numtide/feat/cache-fallback
...
gh-pages / build (push) Waiting to run
gh-pages / deploy (push) Blocked by required conditions
Nix Flake Actions / nix-matrix (push) Has been cancelled
Nix Flake Actions / nix-build (push) Has been cancelled
feat: if we can't open the cache, fallback to no cache
2024-07-03 10:24:53 +00:00
Brian McGee
f266fc863b
feat: if we can't open the cache, fallback to no cache
...
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-03 09:40:46 +01:00
Brian McGee
39bc4464b1
Merge pull request #329 from numtide/reduce-readme
...
gh-pages / build (push) Has been cancelled
Nix Flake Actions / nix-matrix (push) Has been cancelled
gh-pages / deploy (push) Has been cancelled
Nix Flake Actions / nix-build (push) Has been cancelled
README: drop unecessary meme
2024-07-02 07:52:53 +01:00
Jörg Thalheim
9da59c7364
run deploy only on main
2024-07-02 07:43:24 +02:00
Jörg Thalheim
871701e184
README: drop unecessary meme
...
I don't think it adds much value to the project but takes up space and
attention in the README.
At the end of the day, do users care what language something is written
in?
One can implement a rollercoaster in Excel:
https://www.youtube.com/watch?v=IrVA1BBHFHw
2024-07-02 07:08:21 +02:00
Brian McGee
aa9f78b716
feat: remove release constraint on docs deployment
...
gh-pages / build (push) Waiting to run
gh-pages / deploy (push) Blocked by required conditions
Nix Flake Actions / nix-matrix (push) Waiting to run
Nix Flake Actions / nix-build (push) Blocked by required conditions
Need a better story
to keep docs changes for new features away from the website
before they're released,
but in the short term we need
to be able to push out edits and fixes without releasing.
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-01 20:26:11 +01:00
mergify[bot]
33d2f60701
Merge pull request #325 from numtide/fix/global-excludes
...
fix: configure toml keys for config fields
2024-07-01 15:52:48 +00:00
mergify[bot]
a77db5291d
Merge branch 'main' into fix/global-excludes
2024-07-01 15:52:15 +00:00
mergify[bot]
c3e3c05128
Merge pull request #326 from numtide/fix/global-excludes-docs
...
doc: fix global excludes config example
2024-07-01 15:32:59 +00:00
mergify[bot]
e1f16c8370
Merge branch 'main' into fix/global-excludes-docs
2024-07-01 15:32:26 +00:00
Brian McGee
2e05603d1e
fix: configure toml tags for config fields
...
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-01 16:30:34 +01:00
mergify[bot]
e065ac9a2a
Merge pull request #328 from flokli/no-cache-fix
...
gh-pages / build (push) Waiting to run
gh-pages / deploy (push) Blocked by required conditions
Nix Flake Actions / nix-matrix (push) Waiting to run
Nix Flake Actions / nix-build (push) Blocked by required conditions
fix: only try opening the cache if cache is enabled
2024-07-01 14:47:36 +00:00
Florian Klink
601af09772
fix: only try opening the cache if cache is enabled
...
Otherwise `--no-cache` still fails to open the cache.
2024-07-01 17:40:12 +03:00
Brian McGee
7d7815e1aa
doc: fix global excludes config example
...
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-07-01 14:30:37 +01:00
mergify[bot]
ab9f831d72
Merge pull request #323 from numtide/feat/blueprint
...
gh-pages / build (push) Waiting to run
gh-pages / deploy (push) Blocked by required conditions
Nix Flake Actions / nix-matrix (push) Waiting to run
Nix Flake Actions / nix-build (push) Blocked by required conditions
feat: use numtide/blueprint instead of flake.parts
2024-06-30 11:26:54 +00:00
mergify[bot]
ff5380aaa2
Merge branch 'main' into feat/blueprint
2024-06-30 11:26:22 +00:00
Brian McGee
aea75cdeb1
feat: remove CGO dependencies and disable
...
Not required
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-06-30 12:25:00 +01:00
Brian McGee
986f020c3d
feat: use numtide/blueprint instead of flake.parts
...
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-06-30 12:25:00 +01:00
mergify[bot]
492083b03e
Merge pull request #322 from isbecker/docs/treefmt-vscode
...
gh-pages / build (push) Has been cancelled
Nix Flake Actions / nix-matrix (push) Has been cancelled
gh-pages / deploy (push) Has been cancelled
Nix Flake Actions / nix-build (push) Has been cancelled
docs: adds information regarding IDE integration in vscode
2024-06-28 19:25:34 +00:00
Ian Becker
e02f853229
docs: adds information regarding IDE integration in vscode
2024-06-25 15:46:27 -04:00
Brian McGee
30d30b54f0
Merge pull request #321 from numtide/softer-cancel
...
Softer cancel
2024-06-15 11:28:48 +01:00