traxys
7908729711
dev: Make the tests command able to select which test to launch
...
The `tests` command can either launch all tests (without any arguments),
a specific test with `-t/--test` or choose a test with `-i/--interactive`
2024-07-21 15:17:17 +02:00
Gaetan Lepage
ca01a644ef
flake/dev/formatting: run ruff format in isolated mode
2024-07-11 14:59:08 +02:00
Matt Sturgeon
3c786ae988
flake: ignore unformatted files
...
This suppresses treefmt's "no formatter for path" warnings.
2024-07-08 16:24:47 +00:00
Matt Sturgeon
f1a0cf3a90
flake: format toml using "taplo"
2024-07-08 16:24:47 +00:00
Matt Sturgeon
2339ddc3a0
flake: format lua with "stylua"
2024-07-08 16:24:47 +00:00
Matt Sturgeon
b310affef3
flake: format + lint python with "ruff"
2024-07-08 16:24:46 +00:00
Matt Sturgeon
7c02148e68
flake: format JS & YML with "prettier"
...
Used for JS and YML files.
Markdown is excluded.
2024-07-08 16:24:46 +00:00
Matt Sturgeon
2583f54225
flake/pre-commit: use treefmt in git hook
2024-07-08 16:24:46 +00:00
seth
5feeb4eef8
flake/dev: make treefmt-nix
optional
...
as this isn't used by consumers, they should be able to remove this
input via `inputs.nixvim.inputs.treefmt-nix.follows = ""`
2024-07-07 16:05:50 -04:00
seth
432a513ccd
flake/dev: make git-hooks
optional
...
as this isn't used by consumers, they should be able to remove this
input via `inputs.nixvim.inputs.git-hooks.follows = ""`. it is
especially important here as `git-hooks` has a large amount of inputs
itself
2024-07-07 16:05:04 -04:00
Matt Sturgeon
a54ee8ad64
flake-modules: explicitly set the same nixfmt for treefmt + pre-commit
2024-06-05 09:09:08 +01:00
Matt Sturgeon
d9789956d9
flake-modules: don't explicitly set treefmt package
2024-06-05 09:09:07 +01:00
Matt Sturgeon
4d1d008e78
flake-modules: treefmt is formatter by default
...
Remove explicit `formatter = config.treefmt.build.wrapper`, because treefmt's `flakeFormatter` option (default `true`) handles that for us.
2024-06-05 09:09:07 +01:00
Matt Sturgeon
ec78d2e1ab
flake-modules: drop flake-root
...
treefmt isn't actually using flake-root to find the flake's root; it
does it itself.
All we were doing was passing flake-root's default `projectRootFile` to
treefmt, which is `"flake.nix"`;
2024-06-05 09:09:07 +01:00
Gaetan Lepage
1b892d0784
flake: rename pre-commit-hooks to git-hooks
2024-05-27 13:24:07 +02:00
Gaetan Lepage
f7f255afe2
flake-modules: add treefmt to fix the 'nix fmt' command
2024-05-07 22:52:27 +02:00
traxys
62f32bfc71
treewide: Reformat with nixfmt
2024-05-05 22:00:40 +02:00
traxys
c6281260dc
flake-modules: Use nixfmt instead of alejandra
2024-05-05 22:00:40 +02:00
Loïc Reynier
233feeb8d2
treewide: fix typos ( #1217 )
2024-03-07 19:44:13 +01:00
Gaetan Lepage
274293fd69
flake/dev: add a convenient devshell
2024-03-02 14:51:00 +01:00