commit 342c6aec02ed01b7b2c0077542b9a22a50055ad0 Author: Lauri Võsandi Date: Wed Aug 3 07:30:27 2022 +0300 Initial commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c8aeced --- /dev/null +++ b/.drone.yml @@ -0,0 +1,16 @@ +kind: pipeline +type: kubernetes +name: default + +steps: +- name: docker + image: plugins/docker + settings: + repo: harbor.k-space.ee/${DRONE_REPO} + registry: harbor.k-space.ee + mtu: 1300 + storage_driver: vfs + username: + from_secret: docker_username + password: + from_secret: docker_password diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..ff6c948 --- /dev/null +++ b/.flake8 @@ -0,0 +1,6 @@ +[flake8] +inline-quotes = " +multiline-quotes = """ +indent-size = 4 +max-line-length = 160 +ignore = Q003 E128 E704 E731 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..95ee15c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:3-alpine +RUN pip install flake8 flake8-typing-imports flake8-quotes +ADD .flake8 /config/flake8.ini +WORKDIR /apps +ENTRYPOINT ["flake8", "--config", "/config/flake8.ini"] +CMD ["."] diff --git a/README.md b/README.md new file mode 100644 index 0000000..1205087 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# flake8-bundle + +flake8 bundle for using in CI/CD pipelines, largely based on +https://github.com/alpine-docker/flake8/ + +To run locally against source tree use: + +``` +docker run -ti --rm -v $(pwd):/apps harbor.k-space.ee/k-space/flake8-bundle +```