Jonas Chevalier
dfecb1d6cb
cli: add --no-cache option ( #157 )
...
This is useful for CI where you don't care about eval caching. And avoid
the issue described in #156 .
2022-05-02 19:26:56 +02:00
Jonas Chevalier
51423833dc
cache: also track file sizes ( #155 )
...
File mtimes is actually not precise enough in all cases. By also
tracking the file sizes it should reduce the instances of
false-positives.
See #46
2022-05-02 19:09:05 +02:00
dependabot[bot]
d6c621f225
build(deps): bump actions/download-artifact from 2 to 3 ( #152 )
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 19:46:09 +02:00
dependabot[bot]
c4999a7056
build(deps): bump actions/upload-artifact from 2 to 3 ( #151 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 19:32:54 +02:00
dependabot[bot]
5ca8c08bb5
build(deps): bump cachix/install-nix-action from 16 to 17 ( #150 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 16 to 17.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v16...v17 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 19:32:44 +02:00
dependabot[bot]
f5436ac91b
build(deps): bump actions/cache from 2 to 3 ( #148 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-25 00:33:24 +01:00
Jörg Thalheim
11b6bcc4e5
README: link to wiki ( #147 )
2022-03-18 17:52:33 +01:00
dependabot[bot]
09474bcfe8
build(deps): bump actions/checkout from 2 to 3 ( #146 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [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/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-08 11:02:56 +01:00
Jonas Chevalier
26d7f5f15e
website: remove landing page ( #145 )
...
It's better to have no landing page than a half-finished one.
2021-12-24 17:47:18 +01:00
Jonas Chevalier
bada93eead
Update rust.yml
...
Fixes #144
2021-12-20 10:16:18 +01:00
zimbatm
99fb8ccd1c
nix: add mdsh to the devenv
2021-12-18 12:47:11 +01:00
zimbatm
f44033281e
treefmt.toml: fix shell invocation
...
Put a dummy "--" as the first argument, otherwise the first file is
always ignored.
See https://github.com/numtide/treefmt/issues/77#issuecomment-997030856
2021-12-18 12:47:11 +01:00
zimbatm
871b10dba4
Release v0.3.0
2021-12-17 18:56:55 +01:00
Jonas Chevalier
dd00a09878
Merge pull request #142 from numtide/zero-arguments
...
formatter: noop on zero args
2021-12-17 18:52:16 +01:00
zimbatm
56f66e623e
formatter: noop on zero args
...
Speed up the zero case by not even invoking the underlying formatter.
2021-12-17 18:35:06 +01:00
zimbatm
aa4684a8d9
treefmt.toml: add shellcheck example
2021-12-17 18:35:06 +01:00
zimbatm
0c7dce3b48
nix: restore rustfmt to the environment
2021-12-17 18:35:05 +01:00
zimbatm
f3348bed36
clippy derive default
2021-12-17 18:35:05 +01:00
zimbatm
7fcb313c6d
doc: add inline script example
...
This is more flexible than creating an external script.
2021-12-12 16:19:41 +01:00
Jonas Chevalier
e7def7c29e
fix clippy warnings ( #139 )
2021-12-11 22:43:02 +01:00
Basile Henry
874d65223c
Handle the case where no formatter match path for stdin ( #138 )
2021-12-09 11:04:34 +01:00
dependabot[bot]
d9863a6bcd
build(deps): bump cachix/install-nix-action from 15 to 16 ( #136 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 15 to 16.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v15...v16 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-26 16:49:10 +00:00
dependabot[bot]
1e38ba69dd
build(deps): bump cachix/install-nix-action from 14 to 15 ( #135 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 14 to 15.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v14...v15 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-15 18:21:02 +01:00
Jonas Chevalier
46a99b4de4
Merge pull request #130 from numtide/flake-update
...
fix macOS
2021-11-12 23:03:16 +01:00
zimbatm
10e55961d6
fix the macOS builds
...
replace the devshell to make it work on macOS
2021-11-12 22:37:05 +01:00
zimbatm
12122968ff
cargo update
2021-11-12 20:31:40 +01:00
zimbatm
5e9ae5436e
fmt
2021-11-12 20:31:40 +01:00
David Arnold
3801e8e10a
Trade in naersk for a newer version of nixpkgs ( #134 )
...
- Naersk has the annoying property to pin nixpkgs as a dep
- Nixpkgs mostly is a _core_ dependency that it is worth auditing duely
(e.g. to avoid cache mismatches and other spourious errors)
- Every usage of naersk adds a another "spurious" nixpkgs dep somewhere
to the flake lock. That makes auditing less straight forward.
2021-11-11 23:04:27 +00:00
David Arnold
d8e59ef91a
Add meta.description to play nicely with devshell menu ( #132 )
2021-11-11 19:01:45 +00:00
Vincent Ambo
70990b3924
allow config files to be independent from worktree location ( #131 )
...
This is useful in cases where a config file is built by Nix (e.g. to
ensure the availability of all formatters by templating their paths),
as would be preferred for the TVL monorepo.
2021-10-10 14:25:44 +00:00
dependabot[bot]
20de96d02a
build(deps): bump cachix/install-nix-action from 13 to 14 ( #128 )
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 13 to 14.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v13...v14 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-13 20:05:12 +02:00
zimbatm
be246b05b3
display round ms
...
Fractional ms doesn't provide any value. We get it, it's fast.
2021-09-02 22:25:59 +02:00
zimbatm
98460a8da0
Release v0.2.6
2021-08-31 17:12:54 +02:00
zimbatm
451c293765
display formatter outputs on error
...
If a formatter fails with exit status > 0, print the captured outputs by
default. As a user, I want to see directly what caused the error.
2021-08-31 17:11:19 +02:00
zimbatm
ff9f9601e1
Release v0.2.5
2021-08-14 17:33:42 +02:00
zimbatm
ab23c9f73e
process 1024 files at a time
...
This is a simpler approach to E2BIG
Fixes #10
2021-08-14 17:29:26 +02:00
zimbatm
71ab126019
Release v0.2.4
2021-08-14 17:10:06 +02:00
zimbatm
948196ade5
collect the mtime *after* formatting.
...
Fixes #118
2021-08-14 17:04:39 +02:00
zimbatm
f212b0ab7e
Release v0.2.3
2021-08-04 13:02:17 +02:00
Florian Klink
d1bc82a353
engine: skip over symlinks ( #123 )
...
We don't want to format files outside the directory, and if the symlink
destination is in the repo, it'll be matched when iterating over it.
Fixes #122 .
2021-08-03 17:59:35 +02:00
Jonas Chevalier
5fff9c3a15
Update README.md
...
treefmt is beta
2021-07-31 13:19:22 +02:00
Basile Henry
a2db2cc181
Support global excludes ( #121 )
...
* Support global excludes
Closes #119
Adds an extra field to the config to support excludes that apply to all formatters
* Move global config into its own toml section
2021-07-17 10:32:51 +00:00
zimbatm
90727a47d3
ci: remove broken cargo bloat check
...
It's a neat idea but not essential to the project. Remove since it's
broken.
2021-06-29 15:11:35 +02:00
Jonas Chevalier
07aaf738fd
nix: remove flake-compat ( #117 )
...
We shouldn't punish stable Nix users. flake-compat does that by making
the default.nix convoluted to use. Instead do the reverse and have
flake.nix depend on default.nix.
2021-06-29 11:01:37 +02:00
zimbatm
233f472aa3
Release v0.2.2
2021-05-31 18:09:42 +02:00
Jonas Chevalier
3d129bcefc
ci: use the cachix auth token instead ( #116 )
...
The cache was converted to using auth tokens
2021-05-31 15:13:48 +02:00
Andika Demas Riyandi
9c5456517c
Merge pull request #114 from Mic92/docs
...
README: fix example
2021-05-29 11:54:07 +07:00
Jörg Thalheim
e28f0d55bc
README: fix example
2021-05-29 06:40:02 +02:00
zimbatm
e502075cf5
print the executed formatters in debug mode
2021-05-13 23:08:50 +02:00
zimbatm
e2065a1044
fmt
2021-05-13 23:08:47 +02:00