ufwban/Makefile
2025-05-26 08:37:32 +00:00

21 lines
389 B
Makefile

ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
PYTHON := $(ROOT_DIR)venv/bin/python
install:
python3 -m venv venv
$(PYTHON) -m pip install -r requirements-dev.txt
lint:
$(PYTHON) -m ruff check --fix
format:
$(PYTHON) -m ruff format
check-type:
$(PYTHON) -m mypy *.py
check: format lint check-type
live:
tail -f /var/log/nginx/access.log | python3 ufwban.py --live