Add editorconfig-checker

This commit is contained in:
adisbladis
2021-08-25 13:58:43 -05:00
parent aa0b6fd4a8
commit ebe49463b8
3 changed files with 23 additions and 3 deletions
+3
View File
@@ -52,3 +52,6 @@ __pycache__/
.mypy_cache/
.dmypy.json
dmypy.json
# nix-direnv
.direnv
+1 -3
View File
@@ -1,7 +1,7 @@
GNU General Public License
==========================
_Version 3, 29 June 2007_
_Version 3, 29 June 2007_
_Copyright © 2007 Free Software Foundation, Inc. &lt;<http://fsf.org/>&gt;_
Everyone is permitted to copy and distribute verbatim copies of this license
@@ -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
License. But first, please read
&lt;<http://www.gnu.org/philosophy/why-not-lgpl.html>&gt;.
+19
View File
@@ -13,12 +13,31 @@
packages.nix-eval-jobs = pkgs.callPackage ./hydra.nix {
srcDir = self;
};
checks = {
editorconfig = pkgs.runCommand "editorconfig-checks" {
nativeBuildInputs = [
pkgs.editorconfig-checker
];
} ''
editorconfig-checker ${self}
touch $out
'';
};
defaultPackage = self.packages.${system}.nix-eval-jobs;
devShell = defaultPackage.overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs ++ [
pkgs.editorconfig-checker
(pkgs.python3.withPackages(ps: [
ps.pytest
]))
];
});
});