-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
56 lines (43 loc) · 1.63 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
56
.DEFAULT_GOAL := help
.PHONY: install fmt lint mypy pyright pylint checks bugnet hint repair
### QUICK
# ¯¯¯¯¯¯¯
help: ## Help
echo "You need this because you suck as a developer."
install: ## Install dependencies
pip install -r requirements-dev.txt --upgrade --no-warn-script-location
fmt: ## Format
python -m isort ./bugnet/ ./aoc-dataset/ ./repair-pipeline/ ./hint/ ./repair/ --skip .venv/
python -m black ./bugnet/ ./aoc-dataset/ ./repair-pipeline/ ./hint/ ./repair/ --exclude .venv/
lint: ## Lint
python -m flake8 ./bugnet/
python -m flake8 ./aoc-dataset/
python -m flake8 ./hint/
python -m flake8 ./repair/
python -m flake8 ./repair-pipeline/
pylint: ## Check with pylint
python -m pylint ./bugnet/
python -m pylint ./aoc-dataset/
python -m pylint ./hint/
python -m pylint ./repair/
mypy: ## Check with mypy
python -m mypy ./bugnet/ --ignore-missing-imports
python -m mypy ./aoc-dataset/*.py --ignore-missing-imports
python -m mypy ./hint/ --ignore-missing-imports
python -m mypy ./repair/ --ignore-missing-imports
python -m mypy ./repair-pipeline/docker-example/ --ignore-missing-imports
python -m mypy ./repair-pipeline/rest-api/ --ignore-missing-imports
pyright: ## Check with pyright
python -m pyright ./bugnet/
python -m pyright ./aoc-dataset/
python -m pyright ./hint/
python -m pyright ./repair/
checks: lint pylint mypy pyright
bugnet: ## BugNet
python bugnet/main.py --log info
aoc: ## AoC
python aoc-dataset/main.py --log info
hint: ## Generate hints
TOKENIZERS_PARALLELISM=false python hint/main.py --log info
repair: ## Generate repairs
TOKENIZERS_PARALLELISM=false python repair/main.py --log info