forked from advanced-security/grab_ql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (27 loc) · 914 Bytes
/
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
all: lint test build bin
.PHONY: wheel lint install clean bin test release
build:
python3 -m pip -q install build
python3 -m build
install:
find . -type f -name "grab_codeql-*.whl" -exec python3 -m pip install -q --force-reinstall {} \;
lint:
python3 -m pip install -q -r dev-requirements.txt
python3 -m yapf --in-place --style=google --recursive .
python3 -m isort .
python3 -m flake8 --max-line-length 120 --ignore=E251,W503,W504,E126 .
python3 -m bandit --configfile bandit.yaml --recursive --quiet .
python3 -m mypy .
python3 -m pydocstyle .
-python3 -m vulture .
test:
python3 -m pip install -q -r requirements.txt
python3 -m pip install -q -r dev-requirements.txt
python3 -mpytest test
bin:
./build_nuitka.sh
release:
./do_release.sh
clean:
-rm *.zip *.vsix grab_codeql.bin
-rm -rf ./dist/ ./grab_codeql.build/ ./grab_codeql.dist/ ./grab_codeql.egg-info/ ./grab_codeql.onefile-build