Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Use gulp-flake8 for checking

Peter van der Doesabc51c3a9c7c
diff --git a/gulpfile.js b/gulpfile.js
index 6bc39933f..8463f9da4 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -19,7 +19,21 @@ gulp.task('lint-js', function () {
.pipe(eslint.failAfterError());
});
-gulp.task('lint', ['lint-js']);
+gulp.task('lint-python', function () {
+ return gulp.src(['**/*py',
+ '!**/extras/**',
+ '!**/build/**',
+ '!**/dist/**',
+ '!**/node_modules/**',
+ '!**/migrations/**',
+ '!**/docs/**',
+ '!settings.py'])
+ .pipe(flake8())
+ .pipe(flake8.reporter())
+ .pipe(flake8.failOnError());
+});
+
+gulp.task('lint', ['lint-js', 'lint-python']);
gulp.task('default', ['lint'], function () {
// This will only run if the lint task is successful...