Austin Horstman
b4f71a9330
flake-modules/dev: exclude generated files from typos hook
2024-10-10 09:35:52 -05:00
Austin Horstman
5e8f822af5
flake-modules/dev: treefmt re-enable taplo linux
2024-09-26 11:05:48 -05:00
Matt Sturgeon
1310eaf606
flake/treefmt: disable taplo for now
...
It is currently broken, with the error:
taplo with options '[format]' failed to apply: exit status 101
2024-09-13 10:08:08 -05:00
Quentin Boyer
cab2a30ae1
docs: Create a markdown-it plugin
2024-09-13 12:59:27 +01:00
Matt Sturgeon
faff32b9f1
plugins/by-name: init
...
Add support for automatically importing any directories under
`plugins/by-name`.
Includes a validation test, which is run by CI and by the pre-commit hook.
2024-09-09 11:50:38 +01:00
Matt Sturgeon
c4135d720a
flake/pre-commit: check maintainers when modified
2024-09-07 02:08:23 +01:00
Matt Sturgeon
5c929a161f
flake: remove pre-commit from checks
output
2024-09-07 02:08:23 +01:00
Austin Horstman
caefb266be
flake-modules/dev: treefmt ignore .editorconfig
2024-08-31 16:26:49 -05:00
Austin Horstman
3a04cc75e6
flake-modules/dev: add isort
2024-08-24 08:47:04 -05:00
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