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
45081d5f21
flake-modules/list-plugins: add extra filters
...
I have been using this more and wanted to create some filters to
onlyoutput the information I cared about. This adds the ability to
filter bykind, state, and whether a plugin has deprecation warnings.
2024-08-24 09:39:29 -05:00
Austin Horstman
3a04cc75e6
flake-modules/dev: add isort
2024-08-24 08:47:04 -05:00
Matt Sturgeon
312db6b6e2
flake-modules/devshell: update tests command with link-farm support
...
Since we're using link-farms, we need to access the underlying tests as
`passthru.entries.*`.
2024-08-19 03:57:22 +01:00
Austin Horstman
fb4e6c2361
flake-modules/devshell: add getopt runtimeInput
...
Use a consistent behavior of getopt in launchtests.sh. Wasn't able to
use tests command on macbook without including this because the macOS
getopt didn't support our usage.
2024-08-15 08:02:57 -05:00
Quentin Boyer
c12e59ff7c
doc: Use correct href for nuscht-search
...
This commit also adds a subdirectory in the docs derivation, to have the
same local structure than what is uploaded on github pages.
2024-07-25 18:23:47 +00:00
Quentin Boyer
4d874f6c11
dev: Make the serve-docs command uncached
2024-07-25 14:00:35 +00:00
traxys
f1eaf5b617
dev: Allow to pass arguments to nix in tests
...
This can allow to pass --show-trace for example
2024-07-23 22:03:42 +02:00
traxys
1c75b414cb
dev: Allow to choose the system in tests
...
This is done through the -s/--system <system> option
2024-07-23 21:58:23 +02:00
Gaetan Lepage
901e8760d0
flake-modules/dev: format launch-test.sh
2024-07-22 23:25:28 +02: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
aad2e32b5a
treewide: reformat
2024-07-08 16:24:47 +00: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
seth
2f21379b8c
flake/devshell: make devshell
optional
...
as this isn't used by consumers, they should be able to remove this
input via `inputs.nixvim.inputs.devshell.follows = ""`
2024-07-07 16:04:31 -04:00
Matt Sturgeon
714aa7bb18
flake/devshell: add test-lib
command + improve checks
2024-06-30 17:53:35 +01:00
PerchunPak
0957f5fd89
flake/dev: fix nix-output-monitor
...
- Bash resolves `'${VAR:-0}'` as literal string `'${VAR:-0}'`, instead
we want a value from `$VAR`.
- Proper package name for NOM is `nix-output-monitor`, not `nom`.
2024-06-27 18:34:55 +02:00
Gaetan Lepage
744dfea48b
flake/dev: add list-plugins script/command
2024-06-20 09:47:52 +02: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
5293373732
flake/devshell: remove "$@" in 'checks' as it doesn't work
2024-03-06 10:19:42 +01:00
Gaetan Lepage
8b0eba515d
flake/devshell: forward cli args to commands
2024-03-04 11:45:36 +01:00
Gaetan Lepage
274293fd69
flake/dev: add a convenient devshell
2024-03-02 14:51:00 +01:00