Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drdaeman/docker-flake8
A Docker image with Python 3 and Flake8 preinstalled and pre-configured to my tastes.
https://github.com/drdaeman/docker-flake8
docker-image flake8 linting
Last synced: 16 days ago
JSON representation
A Docker image with Python 3 and Flake8 preinstalled and pre-configured to my tastes.
- Host: GitHub
- URL: https://github.com/drdaeman/docker-flake8
- Owner: drdaeman
- License: cc0-1.0
- Created: 2017-08-05T14:58:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-11T17:11:36.000Z (about 7 years ago)
- Last Synced: 2024-10-03T12:23:29.873Z (about 1 month ago)
- Topics: docker-image, flake8, linting
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
Docker image for Python 3 and Flake8
====================================This image is meant to be used to quickly check if code is alright.
My use case is automated CI runs.[![Docker Build Status][badge]](https://hub.docker.com/r/drdaeman/flake8/)
What's included
---------------- Python 3.x (latest), as the image is based on `python:3-alpine`
- Flake8 with the following plugins (latest versions, as available
on PyPI at image build time):
- flake8-comprehensions
- flake8-docstrings
- flake8-import-order
- flake8-mutable
- flake8-pep3101
- flake8-pyi
- flake8-quotes
- flake8-string-format
- pep8-naming
- Image is configured to run as a non-privileged (non-root) user.
- Some default flake8 settings that I prefer, like double quotes and
120-column margins. YMMV, override those in your own `.flake` file.Usage
-----Image is pre-configured to have `flake8` as its entryppoint and
starts in `/project` (empty, bind-mount your code in there).So, assuming your code is world-readable, to lint your files,
all you have to run is:docker -it --rm -v $(pwd):/project drdaeman/flake8
[badge]: https://img.shields.io/docker/build/drdaeman/flake8.svg