GithubHelp home page GithubHelp logo

netflash / docker-pylint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clburlison/docker-pylint

0.0 3.0 0.0 15 KB

Containers for linting python files in CI

License: MIT License

Dockerfile 100.00%

docker-pylint's Introduction

docker-pylint

This container can be pulled with:

docker pull clburlison/pylint

If you don't need spell checking I highly recommend using the one of the 'alpine' tags as they are much smaller.

Details

Tag Name Associated Dockerfile Compressed Size
py3-alpine,latest py3-alpine Size: 43 MB
py2-alpine py2-alpine Size: 38 MB
py3-wheezy py3-alpine Size: 224 MB
py2-wheezy py2-alpine Size: 215 MB

Source on Docker Hub: clburlison/pylint

This container is designed for running lint checks with CI build systems. Current tools installed:

  • git
  • openssl-client
  • flake8 (pip)
  • pylint (pip)
  • pyenchant (pip)

...while the py-wheezy containers also include:

  • enchant
  • pyenchant (pip)

Usage

more documentation will be added soon

Spell checking

Spelling test with:

docker run --rm -v $(pwd):/code -w "/code" clburlison/pylint:py2-wheezy \
  pylint --disable=all --reports=n --enable=spelling \
  --spelling-dict=en_US --ignore-comments=no \
  --spelling-private-dict-file=tests/words \
  path/to/python/code

To add unknown words to a 'words' file with:

docker run --rm -v $(pwd):/code -w "/code" clburlison/pylint:py2-wheezy \
  pylint --disable=all --reports=n --enable=spelling \
  --spelling-dict=en_US --ignore-comments=no \
  --spelling-store-unknown-words=y \
  --spelling-private-dict-file=tests/words \
  path/to/python/code

docker-pylint's People

Contributors

clburlison avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.