mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
dev/list-plugins: add flake check
This commit is contained in:
parent
12db5eaf8a
commit
ad87ec831b
1 changed files with 15 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
|||
{ self, ... }:
|
||||
{
|
||||
perSystem =
|
||||
{
|
||||
self',
|
||||
config,
|
||||
lib,
|
||||
inputs',
|
||||
|
@ -8,8 +10,8 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
packages.list-plugins = pkgs.writers.writePython3Bin "list-plugins" {
|
||||
let
|
||||
package = pkgs.writers.writePython3Bin "list-plugins" {
|
||||
# Disable flake8 checks that are incompatible with the ruff ones
|
||||
flakeIgnore = [
|
||||
# line too long
|
||||
|
@ -18,6 +20,17 @@
|
|||
"W503"
|
||||
];
|
||||
} (builtins.readFile ./list-plugins.py);
|
||||
in
|
||||
{
|
||||
packages.list-plugins = package;
|
||||
checks.list-plugins-test =
|
||||
pkgs.runCommand "list-plugins-test"
|
||||
{
|
||||
nativeBuildInputs = [ package ];
|
||||
}
|
||||
''
|
||||
list-plugins --root-path ${self} > $out
|
||||
'';
|
||||
|
||||
devshells.default.commands = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue