-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 834 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 834 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
.PHONY: init test-ci lint setup setup-rh-pre-commit install-uv
install-uv:
@command -v uv >/dev/null 2>&1 || { echo "Installing uv..."; curl -LsSf https://astral.sh/uv/install.sh | sh; }
init: install-uv setup-rh-pre-commit
test-ci: install-uv lint
lint:
uv run ruff check .
uv run ruff format --check .
setup:
uv run pre-commit install
# VPN required for auth token login to RH internal pattern server
setup-rh-pre-commit: setup
@echo "Installing rh-pre-commit hooks (requires VPN)..."
uv run pre-commit run rh-pre-commit --all-files || true
@echo "Installing rh-gitleaks into project venv..."
uv pip install "rh-gitleaks @ git+https://gitlab.cee.redhat.com/infosec-public/developer-workbench/tools.git#subdirectory=rh-gitleaks"
@echo "Logging in to rh-gitleaks pattern server..."
uv run python3 -m rh_gitleaks login