-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
48 lines (29 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
## The Makefile includes instructions on environment setup and lint tests
# Create and activate a virtual environment
# Install dependencies in requirements.txt
# Dockerfile should pass hadolint
# app.py should pass pylint
# (Optional) Build a simple integration test
SHELL := /bin/bash
setup:
# Create python virtualenv & source it
python3 -m venv .devops
install:
pip3 install -r requirements.txt
devinstall:
.circleci/scripts/install_requirements.sh
buildcontainer:
deploy/run_compose.sh kafka build
statictest:
python -m pytest -vv tests/*.py
staticscan:
bandit -r ./app -lll
dynamicscan:
# doing some stuff with selenium for the frontend
sourcelint:
autopep8 --aggressive --in-place --recursive -v app/
find app -name '*.py' -print0 | xargs -I '{}' -0 pylint -E --disable=E1101 '{}'
dockerlint:
.devops/hadolint --ignore DL3008 --ignore DL3013 deploy/broai_compose/broai-docker/Dockerfile
.devops/hadolint --ignore DL3008 --ignore DL3013 deploy/broai_compose/zeek-docker/Dockerfile
all: install lint test