Overall linting #3

Merged
alexandre merged 13 commits from linting into master 2021-12-06 21:29:02 +01:00
Showing only changes of commit 439020049f - Show all commits

View File

@@ -12,21 +12,33 @@ steps:
image: python
commands:
- pip install -r requirements.txt
volumes:
- name: pip_cache
path: /root/.cache/pip
- name: Lint - pylint
image: python
commands:
- pylint wsgi.py app/*.py
volumes:
- name: pip_cache
path: /root/.cache/pip
- name: Lint - flake8
image: python
commands:
- flake8 wsgi.py app/*.py
volumes:
- name: pip_cache
path: /root/.cache/pip
- name: Security analysis with bandit
image: python
commands:
- bandit -r app/
volumes:
- name: pip_cache
path: /root/.cache/pip
- name: Publish the image
image: plugins/docker
@@ -41,3 +53,8 @@ steps:
when:
branch:
- master
volumes:
- name: pip_cache
host:
path: /tmp/drone/cache/pip_cache