-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
37 lines (30 loc) · 1.46 KB
/
makefile
File metadata and controls
37 lines (30 loc) · 1.46 KB
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
.PHONY: lint format security test
lint:
@echo "################################################################################"
@echo "# ruff check"
@echo "################################################################################"
ruff check --diff input.py tests
@echo "################################################################################"
@echo "# ruff format check"
@echo "################################################################################"
ruff format --check --diff input.py tests
format:
@echo "################################################################################"
@echo "# ruff check --fix"
@echo "################################################################################"
ruff check --fix input.py tests
@echo "################################################################################"
@echo "# ruff format"
@echo "################################################################################"
ruff format input.py tests
security:
@echo "################################################################################"
@echo "# bandit"
@echo "################################################################################"
bandit -r .
test:
@echo "################################################################################"
@echo "# tests"
@echo "################################################################################"
PYTHONPATH=. pytest tests/ -s -v
check: lint security test