aboutsummaryrefslogtreecommitdiff
path: root/.guix/modules
diff options
context:
space:
mode:
Diffstat (limited to '.guix/modules')
-rw-r--r--.guix/modules/gn-auth.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/.guix/modules/gn-auth.scm b/.guix/modules/gn-auth.scm
index f5f7cac..4c51f96 100644
--- a/.guix/modules/gn-auth.scm
+++ b/.guix/modules/gn-auth.scm
@@ -1,6 +1,8 @@
(define-module (gn-auth)
#:use-module ((gn packages genenetwork)
#:select (gn-auth) #:prefix gn:)
+ #:use-module ((gnu packages check) #:select (python-pylint))
+ #:use-module ((gnu packages python-check) #:select (python-mypy))
#:use-module (guix)
#:use-module (guix gexp)
#:use-module (guix packages)
@@ -23,4 +25,23 @@
#:recursive? #t
#:select? vcs-file?))))
+(define-public gn-auth-all-tests
+ (package
+ (inherit gn-auth)
+ (arguments
+ (substitute-keyword-arguments (package-arguments gn-auth)
+ ((#:phases phases #~%standard-phases)
+ #~(modify-phases #$phases
+ (add-before 'build 'pylint
+ (lambda _
+ (invoke "pylint" "main.py" "setup.py" "wsgi.py"
+ "tests" "gn_auth" "scripts")))
+ (add-after 'pylint 'mypy
+ (lambda _
+ (invoke "mypy" ".")))))))
+ (native-inputs
+ (modify-inputs (package-native-inputs gn-auth)
+ (prepend python-mypy)
+ (prepend python-pylint)))))
+
gn-auth