21 lines
627 B
YAML
21 lines
627 B
YAML
pipeline:
|
|
python-lint:
|
|
image: python:3.11-slim
|
|
commands:
|
|
- pip install flake8 pylint
|
|
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
|
|
python-syntax:
|
|
image: python:3.11-slim
|
|
commands:
|
|
- python -m py_compile app.py
|
|
- python -m py_compile import_from_aws.py
|
|
- python -m py_compile import_data.py
|
|
|
|
python-security:
|
|
image: python:3.11-slim
|
|
commands:
|
|
- pip install bandit
|
|
- bandit -r . -f json -o bandit-report.json || true
|
|
- bandit -r . -ll
|