forked from pkeilbach/htwg-practical-nlp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (39 loc) · 1.18 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
install: requirements
requirements: pip
.venv/bin/python3 -m pip install -e .
.venv/bin/python3 -m nltk.downloader -d .venv/nltk_data popular
install-dev: requirements-dev
.venv/bin/pre-commit install
requirements-dev: pip
.venv/bin/python3 -m pip install -e .[dev]
.venv/bin/python3 -m nltk.downloader -d .venv/nltk_data popular
pip: venv
.venv/bin/pip install --upgrade pip
venv:
python3 -m venv --upgrade-deps .venv
# the following commands can only be used when `make` was executed successfully
# TODO issue-135: print a hint on the console to execute `make`
jupyter:
.venv/bin/jupyter notebook --no-browser
mkdocs:
.venv/bin/mkdocs serve
format:
.venv/bin/black .
type-check:
.venv/bin/mypy src/
lint:
.venv/bin/ruff check --fix
markdownlint --fix '**/*.md'
pytest:
.venv/bin/pytest
assignment-0:
.venv/bin/pytest tests/htwgnlp/test_python_basics.py
assignment-1:
.venv/bin/pytest tests/htwgnlp/test_preprocessing.py
assignment-2:
.venv/bin/pytest tests/htwgnlp/test_features.py
.venv/bin/pytest tests/htwgnlp/test_logistic_regression.py
assignment-3:
.venv/bin/pytest tests/htwgnlp/test_naive_bayes.py
assignment-4:
.venv/bin/pytest tests/htwgnlp/test_embeddings.py