build: add lint target

ober

fefd6fb4152b77e84ec6cf59b9dbad0b10b18c99

diff --git a/Makefile b/Makefile
index 18a0078..8d35c4c 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,11 @@ reproducibility-report:
 target-evidence:
 	JLORA_TARGET_EVIDENCE_DIR="$(TARGET_EVIDENCE_DIR)" sh scripts/target-evidence.sh
 
+.PHONY: lint
+lint:
+	@files="$$(git ls-files --cached --others --exclude-standard '*.py')"; \
+	if [ -n "$$files" ]; then $(PYTHON) -m py_compile $$files; fi
+
 verify: security test provenance-evidence sbom reproducibility-report target-evidence
 	grep -q '^status=match$$' "$(REPRO_DIR)/report.txt"