Sridhar Ratnakumar
e4c88ab14e
Run treefmt to format examples/python
2022-05-08 15:59:20 -04:00
Sridhar Ratnakumar
3d306f9094
nix: use eachDefaultSystem (to allow macOS M1)
2022-05-03 19:09:25 -04:00
Sridhar Ratnakumar
1457f2fdb0
nix: Update flake-utils and nixpkgs
2022-05-03 19:09:15 -04:00
zimbatm
e7918e97ce
Release v0.4.1
2022-05-03 10:47:19 +02:00
zimbatm
39078aa1d7
ci: remove FreeBSD release
...
I don't know how to fix this:
error: linking with `x86_64-unknown-freebsd12-gcc` failed: exit status: 1
Error: |
= note: "x86_64-unknown-freebsd12-gcc" "-m64" "/target/x86_64-unknown-freebsd/release/deps/treefmt-627624e995a5005a.treefmt.707d4e17-cgu.0.rcgu.o" "-Wl,--as-needed" "-L" "/target/x86_64-unknown-freebsd/release/deps" "-L" "/target/release/deps" "-L" "/rust/lib/rustlib/x86_64-unknown-freebsd/lib" "-Wl,--start-group" "-Wl,--end-group" "-Wl,-Bstatic" "/rust/lib/rustlib/x86_64-unknown-freebsd/lib/libcompiler_builtins-5bdf9212626c08e9.rlib" "-Wl,-Bdynamic" "-lrt" "-lutil" "-lexecinfo" "-lkvm" "-lutil" "-lprocstat" "-lrt" "-ldevstat" "-lexecinfo" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lrt" "-lutil" "-lexecinfo" "-lkvm" "-lutil" "-lprocstat" "-lrt" "-ldevstat" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/rust/lib/rustlib/x86_64-unknown-freebsd/lib" "-o" "/target/x86_64-unknown-freebsd/release/deps/treefmt-627624e995a5005a" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs"
= note: /usr/local/lib/gcc/x86_64-unknown-freebsd12/6.4.0/../../../../x86_64-unknown-freebsd12/bin/ld: cannot find -lkvm
/usr/local/lib/gcc/x86_64-unknown-freebsd12/6.4.0/../../../../x86_64-unknown-freebsd12/bin/ld: cannot find -ldevstat
/usr/local/lib/gcc/x86_64-unknown-freebsd12/6.4.0/../../../../x86_64-unknown-freebsd12/bin/ld: cannot find -lkvm
/usr/local/lib/gcc/x86_64-unknown-freebsd12/6.4.0/../../../../x86_64-unknown-freebsd12/bin/ld: cannot find -ldevstat
collect2: error: ld returned 1 exit status
2022-05-03 10:44:45 +02:00
zimbatm
fa441e93aa
ci: fix the macOS release
2022-05-03 10:44:45 +02:00
zimbatm
e9dbeabd15
ci: remove unnecessary cache
...
This runs once every months at most. The cache isn't buying us anything
and might cause some more jitter.
2022-05-03 10:44:45 +02:00
zimbatm
9f9d61344c
Release v0.4.0
2022-05-02 20:11:58 +02:00
Jonas Chevalier
591b299fda
Cargo update ( #158 )
...
* bump cargo dependencies
* fix rust compilation warnings
2022-05-02 20:07:50 +02:00
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