Skip to content

eea/eea.docker.pylint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for Pylint checker

Pylint is a source code bug and quality checker for the Python programming language. It follows the style recommended by PEP 8, the Python style guide.

Supported tags and respective Dockerfile links

Usage

$ docker run --rm -v /path/to/python/code:/code eeacms/pylint

or

$ docker run --rm eeacms/pylint https://github.com/eea/eggmonkeytest.git

Running in jenkins, including pull requests:

  • GIT_NAME, GIT_SRC - must be given

  • GIT_BRANCH - defaults to master

  • GIT_CHANGE_ID - can be empty or pull request id

    $ docker run -i --rm -e GIT_SRC="https://github.com/eea/$GIT_NAME.git" -e GIT_NAME="$GIT_NAME" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" eeacms/pylint

Advanced usage

Change output format to json:

$ docker run --rm -e PARAMS="--output-format=json" eeacms/pylint https://github.com/eea/eggmonkeytest.git

By default this image runs with this pylint rcfile, but you can provide your own like:

$ docker run --rm -v /path/to/pylint/rcfile.cfg:/etc/pylint.cfg \
         eeacms/pylint https://github.com/eea/eggmonkeytest.git

See --help for more options:

$ docker run --rm eeacms/pylint --help

About

Docker image for pylint (python code analyzer)

Resources

Stars

Watchers

Forks

Packages

No packages published