Commit Graph

288 Commits

Author SHA1 Message Date
Aldo Borrero
0511d0e651
feat: introduce value_parse 2022-12-21 18:22:36 +00:00
Aldo Borrero
da9a006cb0 chore: rename args to cli 2022-12-12 19:15:22 +00:00
Aldo Borrero
338c997326 wip: migration to clap 2022-12-12 19:12:36 +00:00
BMG
897bf115b1
feat: replace custom log with env_logger (#199) 2022-12-12 00:06:23 +01:00
BMG
fc133187bd
feat: update rust to 1.65.0 (#193) 2022-12-09 19:41:02 +01:00
Jonas Chevalier
fc7180bd22
Merge pull request #192 from brianmcgee/feat/rust-overlay
feat: switch to oxalica/rust-overlay
2022-12-09 15:49:24 +01:00
Brian McGee
c327c4a77d
feat: add nix-direnv 2022-12-09 14:01:35 +00:00
Brian McGee
e4637a77ef
feat: switch to oxalica/rust-overlay 2022-12-09 14:01:34 +00:00
BMG
4800bf5373
feat: more concise stats (#190)
* feat: more concise stats

* feat: refine wording of concise stats

Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>

Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2022-12-02 13:06:04 +01:00
zimbatm
17c632ac49
fix: run treefmt on treefmt 2022-12-01 18:30:10 +01:00
zimbatm
cead31451e
Release v0.5.0 2022-12-01 18:22:02 +01:00
BMG
b06edc3c8d
feat: hard fail on missing tools (#189) 2022-12-01 18:15:44 +01:00
chris montgomery
1375bff247
docs: fix link to contributing guidelines (#187) 2022-11-23 21:29:59 +01:00
dependabot[bot]
d7d8363930
build(deps): bump cachix/cachix-action from 11 to 12 (#186)
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 11 to 12.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v11...v12)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 19:11:10 +01:00
dependabot[bot]
fe7959bb18
build(deps): bump cachix/install-nix-action from 17 to 18 (#184)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18)

---
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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-29 22:55:28 +02:00
dependabot[bot]
da79503718
build(deps): bump cachix/cachix-action from 10 to 11 (#185)
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 10 to 11.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v10...v11)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 16:04:16 +02:00
a-kenji
5b9d911bee
fix typos (#183) 2022-10-16 15:26:44 +02:00
zimbatm
da42d37d6c
terraform 1.3.0 accepts a list of files
Fixes #97
2022-09-22 16:25:28 +02:00
Jonas Chevalier
66959743ba
fix nixpkgs.withConfig (#181)
Add CI check so this actually gets exercised
2022-09-21 21:30:46 +02:00
Jonas Chevalier
9615c40924
Merge pull request #169 from numtide/withConfig
add treefmt.withConfig
2022-09-21 18:54:15 +02:00
zimbatm
84677166df
introduce treefmt.withConfig
This is useful if you want to configure treefmt with nix, and precisely
pass all the commands from nixpkgs.

Co-authored-by: Sridhar Ratnakumar <srid@srid.ca>
2022-09-21 18:40:21 +02:00
zimbatm
f2bbb89e39
add .envrc for the project
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-09-21 18:28:18 +02:00
zimbatm
0c20ac5822
flake update 2022-09-21 13:12:56 +02:00
Jonas Chevalier
ef8f965344
Merge pull request #176 from srid/flake-parts
Switch to `flake-parts`
2022-08-23 19:13:03 +02:00
Sridhar Ratnakumar
becf50f2ff flake-parts: use the same nixpkgs 2022-08-23 11:08:12 -04:00
Sridhar Ratnakumar
3a042bf97b Switch to flake-parts 2022-08-23 11:03:29 -04:00
Sridhar Ratnakumar
e2b2f65b3c
Ignore .direnv (#175) 2022-08-23 17:02:08 +02:00
zimbatm
2af3933b4b
formatters-spec: clarify syntax and semantics rule 2022-08-09 10:37:45 +02:00
zimbatm
f400c2f320
fix typo 2022-08-09 10:27:10 +02:00
Jonas Chevalier
3aee5bd5d3
lazily create the cache directory (#174)
Don't touch $HOME unless needed.

Fixes #173.
2022-07-07 17:09:23 +02:00
zimbatm
db604fd694
nix: fix eval 2022-07-05 11:17:10 +02:00
zimbatm
51826cc342
minimize treefmt rebuild 2022-07-05 10:57:51 +02:00
Loïc Reynier
ac9fbe6bf9
Add support for .treefmt.toml (#172) 2022-07-04 12:20:01 +02:00
dependabot[bot]
676731f566
build(deps): bump crazy-max/ghaction-github-pages from 2 to 3 (#170)
Bumps [crazy-max/ghaction-github-pages](https://github.com/crazy-max/ghaction-github-pages) from 2 to 3.
- [Release notes](https://github.com/crazy-max/ghaction-github-pages/releases)
- [Changelog](https://github.com/crazy-max/ghaction-github-pages/blob/dev/CHANGELOG.md)
- [Commits](https://github.com/crazy-max/ghaction-github-pages/compare/v2...v3)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-github-pages
  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-05-31 09:52:32 +02:00
zimbatm
d19198044e
treefmt.toml: add warning for sh -c 2022-05-20 16:18:55 +02:00
zimbatm
3824820f08
flake.nix: clean outputs
Move closer to the nix 2.8 schema
2022-05-18 20:26:35 +02:00
zimbatm
0b8e57c5e6
shell.nix: use the right dev shell 2022-05-18 20:19:08 +02:00
Jean-François Roche
25f1ed63f4
cli: add --formatters option (#168)
Select formatters name to apply. Defaults to all formatters

refs #167
2022-05-18 18:14:51 +02:00
Jonas Chevalier
9e21d3ff93
add pre-commit contrib script (#166)
This is working towards #78 . In the end that script would be shipped
with the treefmt binary, but for now let's just test it out.
2022-05-12 18:20:55 +02:00
Tristan de Cacqueray
be1d854f85
nix: move ci dependencies to the devShell (#161)
Fixes #160
2022-05-12 11:42:14 +02:00
Jonas Chevalier
0236d1fdc9
Merge pull request #162 from srid/m1
Allow macOS M1
2022-05-08 23:43:46 +02:00
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