-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
41 lines (31 loc) · 917 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
venv:
. .venv/bin/activate
init:
python3 -m venv .venv
venv
pip install -r requirements.txt
lint: venv
python3 -m pylint grader tests main.py --fail-under 9
mypy grader --ignore-missing-imports
flake8 grader
lint_file file: venv
python3 -m pylint {{file}} --fail-under 9
mypy {{file}} --ignore-missing-imports
test:
unit test
functional test
unit test: venv
find tests -type f -name "test_*.py" -not -name "test_functional.py" | xargs python3 -m unittest
functional test: venv
python3 -m unittest discover -s tests -p "test_functional.py"
push: venv lint test
git push
coverage: venv
coverage run --source="grader" -m unittest discover -s tests
coverage lcov -o lcov.info
coverage report -m --fail-under 75
run: venv
python3 src/main.py
docs: venv
sphinx-apidoc -o docs/source grader
sphinx-build -b html docs/source docs/build