Skip to content

Commit ebe4946

Browse files
committedAug 25, 2021
Add editorconfig-checker
1 parent aa0b6fd commit ebe4946

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed
 

‎.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ __pycache__/
5252
.mypy_cache/
5353
.dmypy.json
5454
dmypy.json
55+
56+
# nix-direnv
57+
.direnv

‎LICENSE.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GNU General Public License
22
==========================
33

4-
_Version 3, 29 June 2007_
4+
_Version 3, 29 June 2007_
55
_Copyright © 2007 Free Software Foundation, Inc. &lt;<http://fsf.org/>&gt;_
66

77
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
593593
what you want to do, use the GNU Lesser General Public License instead of this
594594
License. But first, please read
595595
&lt;<http://www.gnu.org/philosophy/why-not-lgpl.html>&gt;.
596-
597-

‎flake.nix

+19
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,31 @@
1313
packages.nix-eval-jobs = pkgs.callPackage ./hydra.nix {
1414
srcDir = self;
1515
};
16+
17+
checks = {
18+
19+
editorconfig = pkgs.runCommand "editorconfig-checks" {
20+
nativeBuildInputs = [
21+
pkgs.editorconfig-checker
22+
];
23+
} ''
24+
editorconfig-checker ${self}
25+
touch $out
26+
'';
27+
28+
};
29+
1630
defaultPackage = self.packages.${system}.nix-eval-jobs;
1731
devShell = defaultPackage.overrideAttrs (old: {
32+
1833
nativeBuildInputs = old.nativeBuildInputs ++ [
34+
35+
pkgs.editorconfig-checker
36+
1937
(pkgs.python3.withPackages(ps: [
2038
ps.pytest
2139
]))
40+
2241
];
2342
});
2443
});

0 commit comments

Comments
 (0)
Please sign in to comment.