/drone-pytools

Drone Plugin with various tools for working with Python code

Primary LanguageShell

drone-pytools

Build Status Image size

Drone Plugin with various tools for working with Python code. List:

Docker

Build the Docker image with the following commands:

docker build \
  --label org.label-schema.build-date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
  --label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \
  --tag pr0ger/drone-pytools .

Usage

docker run --rm \
  -e PLUGIN_TOOL=mypy \
  -v $(pwd):/drone/src \
  -w /drone/src \
  pr0ger/drone-pytools

From .drone.yml

---
kind: pipeline
name: publish

steps:
- name: lint
  image: pr0ger/drone-pytools
  settings:
    tool: mypy
    skip_packages: tests