1.0.7 • Published 6 years ago
gulp-pep8 v1.0.7
Gulp Pep8
:closed_book: Gulp plugin for pep8 coding standards
Installation
npm install gulp-pep8
Usage
const gulpPep8 = require('gulp-pep8')
const gulp = require('gulp');
gulp.task('lint', () => {
return gulp.src('*.py')
.pipe(gulpPep8());
});
With options
To use with custom options, we pass them as a key, value pair object i.e
gulp.task('lint', () => {
return gulp.src('*.py')
.pipe(gulpPep8({
ignore: ['E501', 'E731', ...],
onFail: () => {
// when we get errors
}
...
}));
});
License
Gulp pep8 is licensed under the terms of MIT license and is available for free.