Initial commit
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Lauri Võsandi 2022-08-03 07:30:27 +03:00
commit 342c6aec02
4 changed files with 38 additions and 0 deletions

16
.drone.yml Normal file
View File

@ -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

6
.flake8 Normal file
View File

@ -0,0 +1,6 @@
[flake8]
inline-quotes = "
multiline-quotes = """
indent-size = 4
max-line-length = 160
ignore = Q003 E128 E704 E731

6
Dockerfile Normal file
View File

@ -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 ["."]

10
README.md Normal file
View File

@ -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
```