gulp-pep8

Gulp plugin for pep8 coding standards

Usage no npm install needed!

<script type="module">
  import gulpPep8 from 'https://cdn.skypack.dev/gulp-pep8';
</script>

README

Gulp Pep8

PRs Welcome Build Status License: MIT

: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.