Skip to content

Alpine-based multistage-build version of pylint for reproducible usage in CI - fork for missing responses

License

Notifications You must be signed in to change notification settings

Magnati/docker-pylint

 
 

Repository files navigation

Docker image for pylint

Tag License

lint build weekly

All #awesome-ci Docker images

ansible-lint ansible awesome-ci bandit black checkmake eslint file-lint gofmt goimports golint jsonlint kubeval linkcheck mypy php-cs-fixer phpcbf phpcs phplint pycodestyle pydocstyle pylint ruff terraform-docs terragrunt-fmt terragrunt yamlfmt yamllint

View Dockerfiles on GitHub.

Available Pylint major versions: 2, 3

Available Architectures: amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x

Supported Python versions: 3.8, 3.9, 3.10, 3.11, 3.12

Tiny Alpine-based multistage-build dockerized version of pylint[1]. The image is built weekly against multiple stable versions and pushed to Dockerhub.

[1] Official project: https://github.com/PyCQA/pylint

🐳 Available Docker image versions

Docker

Rolling releaess

The following Docker image tags are rolling releases and are built and updated every sunday night.

weekly

Docker Tag Git Ref pylint python Available Architectures
2-py38 master 2.x.x 3.8 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
2-py39 master 2.x.x 3.9 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
2-py310 master 2.x.x 3.10 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
2-py311 master 2.x.x 3.11 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
2-py312 master 2.x.x 3.12 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
3-py38 master 3.x.x 3.8 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
3-py39 master 3.x.x 3.9 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
3-py310 master 3.x.x 3.10 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
3-py311 master 3.x.x 3.11 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
3-py312 master 3.x.x 3.12 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x

Point in time releases

The following Docker image tags are built once and can be used for reproducible builds. Its version never changes so you will have to update tags in your pipelines from time to time in order to stay up-to-date.

build

Docker Tag Git Ref pylint python Available Architectures
2-py38-<tag> tag: 2.x.x 3.8 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
2-py39-<tag> tag: 2.x.x 3.9 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
2-py310-<tag> tag: 2.x.x 3.10 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
2-py311-<tag> tag: 2.x.x 3.11 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
2-py312-<tag> tag: 2.x.x 3.12 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
3-py38-<tag> tag: 3.x.x 3.8 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
3-py39-<tag> tag: 3.x.x 3.9 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
3-py310-<tag> tag: 3.x.x 3.10 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
3-py311-<tag> tag: 3.x.x 3.11 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x
3-py312-<tag> tag: 3.x.x 3.12 amd64, i386, arm64, arm64/v8, arm/v7, arm/v6, ppc64le, s390x

Where <tag> refers to the chosen git tag from this repository.

📂 Docker mounts

The working directory inside the Docker container is /data/ and should be mounted locally to the root of your project where your setup.cfg or tox.ini config file is.

💻 Usage

docker run --rm -v $(pwd):/data Magnati/docker-pylint .

Related #awesome-ci projects

Docker images

Save yourself from installing lot's of dependencies and pick a dockerized version of your favourite linter below for reproducible local or remote CI tests:

GitHub DockerHub Type Description
awesome-ci aci-hub-img Basic Tools for git, file and static source code analysis
file-lint flint-hub-img Basic Baisc source code analysis
linkcheck linkcheck-hub-img Basic Search for URLs in files and validate their HTTP status code
ansible ansible-hub-img Ansible Multiple versions and flavours of Ansible
ansible-lint alint-hub-img Ansible Lint Ansible
gofmt gfmt-hub-img Go Format Go source code [1]
goimports gimp-hub-img Go Format Go source code [1]
golint glint-hub-img Go Lint Go code
eslint elint-hub-img Javascript Lint Javascript code
jsonlint jlint-hub-img JSON Lint JSON files [1]
kubeval kubeval-hub-img K8s Lint Kubernetes files
checkmake cm-hub-img Make Lint Makefiles
phpcbf pcbf-hub-img PHP PHP Code Beautifier and Fixer
phpcs pcs-hub-img PHP PHP Code Sniffer
phplint plint-hub-img PHP PHP Code Linter [1]
php-cs-fixer pcsf-hub-img PHP PHP Coding Standards Fixer
bandit bandit-hub-img Python A security linter from PyCQA
black black-hub-img Python The uncompromising Python code formatter
mypy mypy-hub-img Python Static source code analysis
pycodestyle pycs-hub-img Python Python style guide checker
pydocstyle pyds-hub-img Python Python docstyle checker
pylint pylint-hub-img Python Python source code, bug and quality checker
ruff ruff-hub-img Python Fast Python source code, bug and quality checker
terraform-docs tfdocs-hub-img Terraform Terraform doc generator (TF 0.12 ready) [1]
terragrunt tg-hub-img Terraform Terragrunt and Terraform
terragrunt-fmt tgfmt-hub-img Terraform terraform fmt for Terragrunt files [1]
yamlfmt yfmt-hub-img Yaml Format Yaml files [1]
yamllint ylint-hub-img Yaml Lint Yaml files

[1] Uses a shell wrapper to add enhanced functionality not available by original project.

Makefiles

Visit cytopia/makefiles for dependency-less, seamless project integration and minimum required best-practice code linting for CI. The provided Makefiles will only require GNU Make and Docker itself removing the need to install anything else.

📄 License

MIT License

Copyright (c) 2024 Magnati Copyright (c) 2019 cytopia

About

Alpine-based multistage-build version of pylint for reproducible usage in CI - fork for missing responses

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Makefile 97.3%
  • Python 2.7%