Commit Graph

390 Commits

Author SHA1 Message Date
Jose Storopoli
752d50b415
docs: add typst and typstfmt (#267)
- adds typst and typstfmt to the list of known formatters in the docs
2024-02-24 20:21:57 +01:00
dependabot[bot]
6db04e8833
build(deps): bump cachix/cachix-action from 13 to 14 (#269)
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 13 to 14.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v13...v14)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-15 19:03:34 +01:00
dependabot[bot]
bd2cb9a593
build(deps): bump cachix/install-nix-action from 24 to 25 (#268)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 24 to 25.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v24...v25)

---
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>
2024-01-15 18:46:07 +01:00
dependabot[bot]
d34fcec849
build(deps): bump actions/download-artifact from 3 to 4 (#266)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4)

---
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>
2023-12-18 18:17:41 +01:00
dependabot[bot]
59b5c85eff
build(deps): bump actions/upload-artifact from 3 to 4 (#265)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
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>
2023-12-18 18:17:28 +01:00
dependabot[bot]
d5405a83fc
build(deps): bump cachix/cachix-action from 12 to 13 (#259)
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 12 to 13.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v12...v13)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 10:05:00 +01:00
dependabot[bot]
211319058d build(deps): bump rustix from 0.37.23 to 0.37.27
Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.37.23 to 0.37.27.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.37.23...v0.37.27)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 18:42:47 +00:00
dependabot[bot]
697093db44 build(deps): bump cachix/install-nix-action from 23 to 24
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 24.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v24)

---
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>
2023-12-04 18:20:46 +00:00
Jörg Thalheim
08bcc2c9d3
flake.lock: Update (#257)
Flake lock file updates:

• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/dce60ca7fca201014868c08a612edb73a998310f' (2023-10-14)
  → 'github:oxalica/rust-overlay/e494404d36a41247987eeb1bfc2f1ca903e97764' (2023-10-15)

Co-authored-by: mic92-buildbot <mic92-buildbot@users.noreply.github.com>
2023-10-15 19:25:15 +02:00
a-kenji
67d3c553be
feat: add hidden flag to traverse hidden files (#250)
Add the `hidden` and `no-hidden` flag that allows
configuring the traversal of hidden files.

Examples:

```
treefmt --hidden
```
will traverse hidden files.

```
treefmt --hidden --no-hidden
```
will not traverse hidden files, same as the default (`treefmt`).

```
treefmt --hidden --no-hidden --hidden
```
will traverse hidden files.
2023-10-15 10:06:41 +02:00
zimbatm
5943babf13 fixup! Release v0.6.1 2023-10-14 14:39:07 +02:00
zimbatm
216e78f19e Release v0.6.1 2023-10-14 14:30:31 +02:00
dependabot[bot]
cd6e899ee5 build(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>
2023-10-14 12:20:00 +00:00
Jörg Thalheim
90e98e0088 fix formatting of index.html 2023-10-14 12:07:12 +00:00
Jörg Thalheim
de751ab741 work around terraform beeing marked as unfree 2023-10-14 12:07:12 +00:00
Jörg Thalheim
42676eab7a upgrade to new flake-parts syntax 2023-10-14 12:07:12 +00:00
Jörg Thalheim
0504cff27c flake.lock: Update
Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/8d0e2444ab05f79df93b70e5e497f8c708eb6b9b' (2022-12-07)
  → 'github:hercules-ci/flake-parts/c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4' (2023-10-03)
• Updated input 'mkdocs-numtide':
    'github:numtide/mkdocs-numtide/af6c4a5f7c0a59da3b557795f57dcae5707523ac' (2023-04-01)
  → 'github:numtide/mkdocs-numtide/b3008171c75083f2bf2f1dc4e6781d4737dfaa49' (2023-06-26)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/4172cdda7e56a48065475fb98c57b03b83c1fde4' (2022-12-16)
  → 'github:NixOS/nixpkgs/01441e14af5e29c9d27ace398e6dd0b293e25a54' (2023-10-11)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/7da2f6b3a0c32f661cb2864d7fbd1d7e6f0c7543' (2022-12-16)
  → 'github:oxalica/rust-overlay/dce60ca7fca201014868c08a612edb73a998310f' (2023-10-14)
• Updated input 'rust-overlay/flake-utils':
    'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07)
  → 'github:numtide/flake-utils/cfacdce06f30d2b68473a46042957675eebb3401' (2023-04-11)
• Added input 'rust-overlay/flake-utils/systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
• Updated input 'systems':
    'github:nix-systems/default/4e9a51a15ceb27e5141819142a7d2ee827943fc8' (2023-04-08)
  → 'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
2023-10-14 12:07:12 +00:00
Jörg Thalheim
5a4b535e0b flake.nix: add checks for packages and devShells 2023-10-14 12:07:12 +00:00
Jörg Thalheim
bf5ae09dbd restore default loglevel to INFO 2023-10-14 12:07:12 +00:00
Jörg Thalheim
c836a5fcee
Merge pull request #256 from numtide/mergify
switch from bors to mergify
2023-10-14 10:55:08 +02:00
Jörg Thalheim
c90943d191 switch from bors to mergify 2023-10-14 10:54:40 +02:00
Jörg Thalheim
554b0042a6
Merge pull request #253 from a-kenji/fix/flaky/tests
Fix flaky tests that use `std::env::set_var`
2023-10-14 10:45:38 +02:00
a-kenji
2e129d929a
docs: fix inconsistent includes documentation (#249) 2023-09-29 18:31:06 +02:00
a-kenji
6e5f58862e fix: flaky tests
Fix flaky tests that use `std::env::set_var`.

`std::env::set_var` is not safe to be used in parallel.

Reproducer:
``` bash
for _ in {0..100}; do
  cargo t current_dir || exit 1
done
```
Will fail very fast.

Doesn't fail:
```bash
for _ in {0..100}; do
  cargo t current_dir_prefers_pwd_env_var || exit 1
  cargo t current_dir_uses_dereferenced_path_when_pwd_env_var_not_set || exit 1
done
```

Reference: https://github.com/rust-lang/rust/issues/27970
2023-09-28 15:29:35 +02:00
Jonas Chevalier
e1ca0bc7ca
Merge pull request #251 from a-kenji/improve/test-coverage
chore: add tests for the run engine
2023-09-28 13:35:21 +02:00
zimbatm
cec153886b Release v0.6.0 2023-09-28 10:41:49 +02:00
Samuel Rounce
6f9a7a5590
fix: stop symlinked tree root being deref'd (#252)
As reported in numtide/treefmt#221 by @srhb there is currently an issue
where if the `--tree-root` is a symlink everything under that path will
be ignored. This is due to the symlink being dereferenced and the
symlink path not overlapping with the target path. This commit attempts
to rectify this issue by using the `$PWD` environment variable which
in *most* shells will reflect the symlink path rather than the target.
If this environment variable cannot be read then it falls back to use
`getcwd` which will perform the present dereferencing behaviour.

Thanks to @srhb for reporting this issue and thanks to @DBCDK for
sponsoring the time to get this investigated and fixed.
2023-09-26 15:20:03 +02:00
a-kenji
c3c597dd4c chore: add tests for the engine
Add tests for the run engine. The particular focus of these tests are
allowing assertions of the relationships between configuration,
directory structure, walked files and matched files.
2023-09-25 22:11:14 +02:00
a-kenji
17cf0681af refactor: add Statistics struct
Add a Statistics struct, carrying timing debug information and unifying
collection of metrics, simplifying testing and printing of summaries.
2023-09-25 21:21:34 +02:00
a-kenji
b287ac222b refactor: extract certain methods
Extract certain methods from the `run` function of the engine,
in order to make testing feasible.
2023-09-25 21:19:03 +02:00
a-kenji
654ecefd62
fix: minor typos (#248)
Fix minor typos in doc comments.
2023-09-22 14:06:04 +02:00
dependabot[bot]
1cf4ef3550
build(deps): bump cachix/install-nix-action from 22 to 23 (#245)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 22 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23)

---
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>
2023-09-04 19:55:23 +02:00
zimbatm
85f4a464c7 README: add light commercial support offer 2023-08-23 14:05:22 +02:00
bors[bot]
3987049766
Merge #243
243: Small typo in documentation r=zimbatm a=pinage404



Co-authored-by: pinage404 <pinage404@gmail.com>
2023-07-30 16:07:06 +00:00
pinage404
9ac409b609
Small typo in documentation 2023-07-30 14:56:26 +02:00
zimbatm
8ca89b1bb3 cargo update 2023-07-12 11:49:50 +02:00
bors[bot]
069073e79b
Merge #240
240: build(deps): bump cachix/install-nix-action from 21 to 22 r=zimbatm a=dependabot[bot]



Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-19 17:58:38 +00:00
dependabot[bot]
ab38e02c2c
build(deps): bump cachix/install-nix-action from 21 to 22
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 21 to 22.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v21...v22)

---
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>
2023-06-19 17:57:34 +00:00
dependabot[bot]
8e52869b0e
build(deps): bump cachix/install-nix-action from 20 to 21 (#238)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 20 to 21.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v20...v21)

---
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>
2023-05-31 10:22:40 +02:00
zimbatm
459e6af4cd docs: better formatter-spec structure
Since it's a spec, list all of the rules and use MUST / SHOULD similar
to IETF RFCs.
2023-05-30 15:59:49 +02:00
bors[bot]
f70fa3f7da
Merge #233
233: docs: add reference to null-ls r=zimbatm a=zimbatm



Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2023-04-25 20:48:18 +00:00
bors[bot]
303af5cc7a
Merge #234
234: fix all clippy warnings r=zimbatm a=zimbatm



Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2023-04-25 20:39:04 +00:00
zimbatm
45cd7a8bc4
fix all clippy warnings 2023-04-25 22:10:39 +02:00
zimbatm
ef6f448d14
docs: add reference to null-ls 2023-04-25 21:57:21 +02:00
bors[bot]
a2dcb65919
Merge #228
228: flake: expose the list of supported systems r=zimbatm a=zimbatm



Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2023-04-09 10:26:30 +00:00
zimbatm
2b88168c0a
flake: expose the list of supported systems
This is a new convention that lets consumers of the flake control what
systems this flake will be built with.

As a consumer you can pass your own list of systems, by overriding the
inputs. Eg:

```
inputs.systems.url = "path:./flake.systems.nix";
inputs.systems.flake = false;
inputs.treefmt.url = "github:numtide/treefmt";
inputs.treefmt.inputs.follows.systems = "systems";
```

Invented with the help of bb010g in https://github.com/numtide/flake-utils/pull/84

See <https://github.com/nix-systems/nix-systems>
2023-04-09 12:09:16 +02:00
bors[bot]
64667985a6
Merge #231
231: Don't ignore --config-file when using --stdin r=zimbatm a=lbodor



Co-authored-by: lbodor <lazar.bodor@ga.gov.au>
2023-04-09 10:08:35 +00:00
lbodor
95101b595d Remove clone() 2023-04-09 19:56:21 +10:00
lbodor
87edb9d2dc Don't ignore --config-file when using --stdin 2023-04-09 18:28:26 +10:00
bors[bot]
d87045a6f3
Merge #229
229: Fixing supported formatters link r=zimbatm a=glenn-m



Co-authored-by: Glenn McDonald <2371316+glenn-m@users.noreply.github.com>
2023-04-08 20:38:44 +00:00