Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 590 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 590 Bytes

Flake8 docker image

Docker image with flake8 python linter.

Usage

  • Docker
docker run -v $(pwd)/scripts:/scripts hoto/flake8:3.0.4 /scripts
  • Docker Compose
#docker-compose.yml
version: '2'

services:

  lint:
    image: hoto/flake8:3.0.4
    command: flake8 /scripts /tests
    volumes:
      - ./scripts:/scripts
      - ./tests:/tests
      - ./.flake8:/.flake8
  • Gitlab CI Runner
#.gitlab-ci.yml
lint:
  image: hoto/flake8:3.0.4
  stage: lint
  tags:
    - dind
  script:
    - flake8 scripts/ tests/