Commit Graph

402 Commits

Author SHA1 Message Date
Jörg Thalheim
0a285d3d33
Merge pull request #281 from numtide/dependabot/github_actions/peaceiris/actions-gh-pages-4
build(deps): bump peaceiris/actions-gh-pages from 3 to 4
2024-05-02 13:08:56 +02:00
Jörg Thalheim
91f884deb6 update mergify rules 2024-05-02 13:08:49 +02:00
dependabot[bot]
b6efe64926 build(deps): bump peaceiris/actions-gh-pages from 3 to 4
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3 to 4.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4)

---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-02 04:22:41 +00:00
Jörg Thalheim
e514573f41
Merge pull request #285 from a-kenji/fix/formatting
chore: treefmt
2024-05-02 06:21:59 +02:00
a-kenji
407c81a66e chore: treefmt
Run treefmt on itself.
2024-04-19 15:21:00 +02:00
Silvan Mosberger
4dd19e6e43
feat: run the same formatter in parallel for many files (#282) 2024-04-19 15:13:16 +02:00
a-kenji
4f5a8f0a00
docs: update neovim integration (#284)
`null-ls` is deprecated, and `none-ls` seems to be the maintained fork.
2024-04-19 15:13:01 +02:00
nokazn
b802b978aa
fix: enable to select some formatters without --allow-missing-formatter (#278) 2024-04-06 11:04:37 +02:00
a-kenji
8f57f1b715
Fix wording in comment (#280) 2024-04-05 19:45:22 +02:00
dependabot[bot]
955ae4f357
build(deps): bump flask from 0.12.1 to 2.2.5 in /examples/python (#247)
Bumps [flask](https://github.com/pallets/flask) from 0.12.1 to 2.2.5.
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/flask/compare/0.12.1...2.2.5)

---
updated-dependencies:
- dependency-name: flask
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2024-03-12 22:14:45 +01:00
dependabot[bot]
3963d42c46
build(deps): bump softprops/action-gh-release from 1 to 2 (#272)
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  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>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2024-03-12 15:20:05 +01:00
dependabot[bot]
c1265822cf
build(deps): bump cachix/install-nix-action from 25 to 26 (#271)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 25 to 26.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v25...v26)

---
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-03-12 15:14:47 +01:00
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