Commit Graph

357 Commits

Author SHA1 Message Date
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
zimbatm
7fa467bb3a
customlog: remove emojis
Emojis are useful at information compression. Here they just repeat the
same log level and reduce clarity.

Fixes #111
2021-05-13 22:29:52 +02:00
zimbatm
5ce49c01f6
fix cargo publish 2021-05-08 20:41:55 +02:00
zimbatm
5f16a36e63
Release v0.2.1 2021-05-08 20:31:01 +02:00
zimbatm
c70100ee00
ci: automate the release publication
This still requires us to create a release commit, tag and push it.
2021-05-08 20:30:35 +02:00
Jonas Chevalier
b25cfa461f
formatter: add rufo (#113) 2021-05-08 16:26:26 +00:00
Jonas Chevalier
c669ddb0da
README: improve description (#108) 2021-05-07 21:13:56 +02:00
Jonas Chevalier
4e10f88b6f
change default loglevel to INFO (#109) 2021-05-07 21:13:48 +02:00
zimbatm
0f719178f5
fmt 2021-05-07 20:43:50 +02:00
zimbatm
9d6538af18
README: add pre-commit to the related projects 2021-05-07 20:20:05 +02:00
zimbatm
6173e11662
Cargo.toml: fix metadata 2021-05-07 19:22:33 +02:00
zimbatm
c61f47f0f1
Release v0.2.0 2021-05-07 19:18:39 +02:00
zimbatm
c1b1b2f99b
lib: simplify expand_env 2021-05-07 16:25:05 +02:00
zimbatm
bcd58b36ec
support relative commands
command relative paths should be relative to the treefmt.toml folder.
2021-05-07 00:21:15 +02:00
zimbatm
f640dd9c9d
terraform fmt workaround
See #97
2021-05-07 00:21:06 +02:00
zimbatm
dc25c5a742
exclude CHANGELOG.md 2021-05-07 00:18:16 +02:00
zimbatm
f5e1e3166f
fmt 2021-05-06 22:05:35 +02:00
Andika Demas Riyandi
ca59a61d0c
Always expanding the path given in the treefmt.toml (#107)
* add cabal-fmt formatter

* always expand the path provided in treefmt.toml

* adding */ format in expanding path for string

* adding unit test for expand_if_path function

* Update src/lib.rs

* revert treefmt.toml

Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2021-05-06 10:02:32 +02:00
Jonas Chevalier
29d7a8b225
Update formatters-spec.md
Thanks @nmattia
2021-05-03 20:43:21 +02:00
zimbatm
797b80e98d
Release v0.1.1 2021-04-24 14:13:24 +02:00
dependabot[bot]
16c2f3457e
build(deps): bump cachix/cachix-action from v9 to v10 (#105)
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from v9 to v10.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v9...73e75d1a0cd4330597a571e8f9dedb41faa2fc4e)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-12 09:44:49 +02:00
zimbatm
4edd9dc581
fix clippy warnings 2021-04-11 14:32:42 +02:00
Basile Henry
63c58e4f55
Report formatter output on error (#104) 2021-04-11 12:30:51 +00:00
zimbatm
05f612bd08
Release v0.1.0 2021-04-10 11:31:12 +02:00
zimbatm
26da75638d
engine: fix elapsed reporting
Broken by #101
2021-04-10 11:28:04 +02:00
Andika Demas Riyandi
b113d53be3
Merge pull request #101 from numtide/output-formatter
Handling output formatter
2021-04-08 21:23:06 +07:00
Andika Demas Riyandi
fb8330c28e
Merge branch 'master' into output-formatter 2021-04-08 21:15:45 +07:00
Andika Demas Riyandi
ae7dc6a340 move error handling to fmt function 2021-04-08 20:43:22 +07:00
Andika Demas Riyandi
d3ade342bd create match on formatter output 2021-04-08 13:33:26 +07:00
Andika Demas Riyandi
c3512d12b6 add Result when collecting formatter result 2021-04-07 18:41:03 +07:00
dependabot[bot]
2471526b01
build(deps): bump cachix/cachix-action from v8 to v9 (#99)
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from v8 to v9.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v8...2689c27f57daedc905895d92ad18fe5ce470df9e)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 16:04:17 +02:00
dependabot[bot]
304780fad1
build(deps): bump cachix/install-nix-action from v12 to v13 (#100)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from v12 to v13.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v12...8d6d5e949675fbadb765c6b1a975047fa5f09b27)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-05 11:17:52 +02:00