-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (29 loc) · 872 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
help:
@echo 'Individual commands:'
@echo ' lint - Lint the code with pylint and flake8'
@echo ' test - Run tests'
@echo ' build - Setup the virtual environment and install dependencies'
@echo ' install - Install dependencies'
@echo ' up - Start ChatGPT voice chat'
@echo ''
@echo 'Grouped commands:'
@echo ' linttest - Run lint and test'
lint:
source ./venv/bin/activate; \
./venv/bin/pylint ./chat.py; \
./venv/bin/flake8 ./chat.py; \
./venv/bin/isort .
test:
source ./venv/bin/activate; \
./venv/bin/pytest -v -s tests.py
build:
virtualenv venv; \
source ./venv/bin/activate; \
pip install -r ./requirements.txt; \
cp ./template.envrc .envrc
install:
source ./venv/bin/activate; \
pip install -r ./requirements.txt
up:
source ./venv/bin/activate; python chat.py
linttest: lint test