feat(drone): added linting and analysis in the CI
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-12-06 19:55:50 +01:00
parent 8d501d6a85
commit 2c80006400
2 changed files with 22 additions and 1 deletions

View File

@@ -8,7 +8,27 @@ platform:
arch: amd64
steps:
- name: docker
- name: Install packages
image: python
commands:
- pip install -r requirements.txt
- name: Lint - pylint
image: python
commands:
- pylint wsgi.py app/*.py
- name: Lint - flake8
image: python
commands:
- flake8 wsgi.py app/*.py
- name: Security analysis with bandit
image: python
commands:
- bandit -r app/
- name: Publish the image
image: plugins/docker
settings:
repo: registry.alxczl.fr/ldap-interface

View File

@@ -12,4 +12,5 @@ ldap3
Flask-WTF==1.0.0
email-validator
flake8
pylint
bandit