Initial commit

This commit is contained in:
github-classroom[bot] 2025-01-09 14:30:05 +00:00 committed by GitHub
commit 4719d0fa73
2 changed files with 31 additions and 0 deletions

15
.gitignore vendored Normal file
View file

@ -0,0 +1,15 @@
*~
*.o
*.pyc
*.swp
*.exe
*.so
*.a
*.tar.gz
__pycache__
homework01/archive
homework01/bash
homework02/*.lockbox
homework07/homework07
homework08/homework08
homework09/homework09

16
Makefile Normal file
View file

@ -0,0 +1,16 @@
BRANCH?= $(shell git rev-parse --abbrev-ref HEAD)
test:
@$(MAKE) -sk test-all
test-all: test-code test-quiz
test-code:
@[ "$(BRANCH)" = "master" -o -z "$(BRANCH)" ] \
|| [ ! -f "$(BRANCH)/Makefile" ] \
|| (cd $(BRANCH) && make -s test)
test-quiz:
@[ "$(BRANCH)" = "master" -o -z "$(BRANCH)" ] \
|| [ ! -f "$(BRANCH)/answers.json" -a ! -f "$(BRANCH)/answers.yaml" ] \
|| .scripts/check.py