mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +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 =
|
perSystem =
|
||||||
{
|
{
|
||||||
|
self',
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
inputs',
|
inputs',
|
||||||
|
@ -8,8 +10,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
let
|
||||||
packages.list-plugins = pkgs.writers.writePython3Bin "list-plugins" {
|
package = pkgs.writers.writePython3Bin "list-plugins" {
|
||||||
# Disable flake8 checks that are incompatible with the ruff ones
|
# Disable flake8 checks that are incompatible with the ruff ones
|
||||||
flakeIgnore = [
|
flakeIgnore = [
|
||||||
# line too long
|
# line too long
|
||||||
|
@ -18,6 +20,17 @@
|
||||||
"W503"
|
"W503"
|
||||||
];
|
];
|
||||||
} (builtins.readFile ./list-plugins.py);
|
} (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 = [
|
devshells.default.commands = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue