-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 848 Bytes
/
Makefile
File metadata and controls
37 lines (27 loc) · 848 Bytes
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
# Makefile for project needs
# Author: Ben Trachtenberg
# Version: 1.0.1
#
.PHONY: all info coverage pytest black security pip-export
info:
@echo "make options"
@echo " black To format code with black"
@echo " coverage To run coverage and display ASCII and output to htmlcov"
@echo " pytest To run pytest with verbose option"
all: black pylint coverage security pip-export vulnerabilities
coverage:
@uv run pytest --cov --cov-report=html -vvv
pytest:
@uv run pytest --cov -vvv
pylint:
@uv run pylint hooks/
black:
@uv run black hooks/
@uv run black tests/
security:
@uv run bandit -c pyproject.toml -r .
vulnerabilities:
@uv run pip-audit -r requirements.txt
pip-export:
@uv export --no-dev --no-emit-project --no-editable > requirements.txt
@uv export --no-emit-project --no-editable > requirements-dev.txt