-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 807 Bytes
/
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
TEST_PATH=./tests
.PHONY: requirements
requirements:
poetry install --no-dev
.PHONY: requirements_tools
requirements_tools:
poetry install
.PHONY: lint
lint: requirements_tools
poetry run flake8 --exclude=env,venv
poetry run black --check .
.PHONY: test
test: requirements_tools
poetry run pytest -vv --color=yes $(TEST_ONLY)
.PHONY: format
format: requirements_tools
poetry run black .
.PHONY: typecheck
typecheck: requirements_tools
poetry run mypy tests tic_tac_toe
.PHONY: notebook
notebook:
poetry run jupyter notebook
.PHONY: ipython
ipython:
poetry run ipython
.PHONY: run_rl
run_rl:
poetry run python tic_tac_toe/reinforcement_learning.py
.PHONY: run_menace
run_menace:
poetry run python tic_tac_toe/menace.py
.PHONY: minimax
minimax:
poetry run python tic_tac_toe/minimax.py