feat: add SQL/SQLite, AppSec, Capstone incident-tracker, Gitea Actions CI and spaced repetition
Test and Lint / quality (push) Successful in 34s

This commit is contained in:
soda64 committed 2026-12-02 16:58:44 +01:00
1 parent 0ac80d60d4
commit 9430a194c3
18 files changed
+422 -7

No files matched your search

+11 -7
View File
@@ -7,7 +7,7 @@ RUN_CONTAINER = $(ENGINE) run --rm \
-w /workspace \
$(IMAGE)
.PHONY: help image check test test-all lint fmt fmt-check typecheck shell
.PHONY: help image check test test-all test-project lint fmt fmt-check typecheck shell
help:
@echo "Dostępne komendy:"
@@ -15,7 +15,8 @@ help:
@echo " make check - Sprawdź lint (ruff) + typy (mypy)"
@echo " make test MOD=01-core/01-basics - Uruchom testy wybranego rozdziału"
@echo " make test - Uruchom testy 01-core + 02-engineering-2026"
@echo " make test-all - Uruchom testy wszystkich 3 ścieżek"
@echo " make test-project - Uruchom testy mini-projektu incident-tracker"
@echo " make test-all - Uruchom testy wszystkich ścieżek + projektu"
@echo " make fmt - Sformatuj kod (ruff format)"
@echo " make fmt-check - Sprawdź formatowanie kodu"
@echo " make shell - Otwórz powłokę bash wewnątrz kontenera"
@@ -24,10 +25,10 @@ image:
$(ENGINE) build -t $(IMAGE) -f Containerfile .
lint:
$(RUN_CONTAINER) ruff check exercises
$(RUN_CONTAINER) ruff check exercises projects
typecheck:
$(RUN_CONTAINER) mypy exercises
$(RUN_CONTAINER) mypy exercises projects
check: lint typecheck
@@ -38,14 +39,17 @@ else
$(RUN_CONTAINER) pytest -v exercises/01-core exercises/02-engineering-2026
endif
test-project:
$(RUN_CONTAINER) pytest -v projects/incident-tracker
test-all:
$(RUN_CONTAINER) pytest -v exercises
$(RUN_CONTAINER) pytest -v exercises projects
fmt:
$(RUN_CONTAINER) ruff format exercises
$(RUN_CONTAINER) ruff format exercises projects
fmt-check:
$(RUN_CONTAINER) ruff format --check exercises
$(RUN_CONTAINER) ruff format --check exercises projects
shell:
$(ENGINE) run --rm -it \