forked from lix-project/nix-eval-jobs
Add editorconfig-checker
This commit is contained in:
parent
aa0b6fd4a8
commit
ebe49463b8
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -52,3 +52,6 @@ __pycache__/
|
||||||
.mypy_cache/
|
.mypy_cache/
|
||||||
.dmypy.json
|
.dmypy.json
|
||||||
dmypy.json
|
dmypy.json
|
||||||
|
|
||||||
|
# nix-direnv
|
||||||
|
.direnv
|
||||||
|
|
|
@ -593,5 +593,3 @@ more useful to permit linking proprietary applications with the library. If this
|
||||||
what you want to do, use the GNU Lesser General Public License instead of this
|
what you want to do, use the GNU Lesser General Public License instead of this
|
||||||
License. But first, please read
|
License. But first, please read
|
||||||
<<http://www.gnu.org/philosophy/why-not-lgpl.html>>.
|
<<http://www.gnu.org/philosophy/why-not-lgpl.html>>.
|
||||||
|
|
||||||
|
|
||||||
|
|
19
flake.nix
19
flake.nix
|
@ -13,12 +13,31 @@
|
||||||
packages.nix-eval-jobs = pkgs.callPackage ./hydra.nix {
|
packages.nix-eval-jobs = pkgs.callPackage ./hydra.nix {
|
||||||
srcDir = self;
|
srcDir = self;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
checks = {
|
||||||
|
|
||||||
|
editorconfig = pkgs.runCommand "editorconfig-checks" {
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.editorconfig-checker
|
||||||
|
];
|
||||||
|
} ''
|
||||||
|
editorconfig-checker ${self}
|
||||||
|
touch $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
defaultPackage = self.packages.${system}.nix-eval-jobs;
|
defaultPackage = self.packages.${system}.nix-eval-jobs;
|
||||||
devShell = defaultPackage.overrideAttrs (old: {
|
devShell = defaultPackage.overrideAttrs (old: {
|
||||||
|
|
||||||
nativeBuildInputs = old.nativeBuildInputs ++ [
|
nativeBuildInputs = old.nativeBuildInputs ++ [
|
||||||
|
|
||||||
|
pkgs.editorconfig-checker
|
||||||
|
|
||||||
(pkgs.python3.withPackages(ps: [
|
(pkgs.python3.withPackages(ps: [
|
||||||
ps.pytest
|
ps.pytest
|
||||||
]))
|
]))
|
||||||
|
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue