Skip to content

Commit c68406a

Browse files
authored
Create Makefile
1 parent 32b71d3 commit c68406a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Makefile

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
init:
2+
@echo "Upgrading pip..."
3+
pip install --upgrade --user pip
4+
@echo "Installing venv.."
5+
# pip install venv
6+
@echo "Creating .venv..."
7+
python3.10 -m venv .venv
8+
@echo "Appending .venv to .gitignore..."
9+
echo "" >> .gitignore
10+
echo "# Virtual environment"
11+
echo ".venv/" >> .gitignore
12+
@echo "Appending .vscode to .gitignore..."
13+
echo "" >> .gitignore
14+
echo "# VS code"
15+
echo ".venv/" >> .gitignore
16+
@echo "Activating .venv and installing required packages..."
17+
. .venv/bin/activate &&\
18+
pip install --upgrade pip &&\
19+
pip install -r requirements.txt
20+
21+
test:
22+
python -m pytest -vv test_hello.py
23+
24+
format:
25+
black *.py
26+
27+
lint:
28+
pylint --disable=R,C hello.py
29+
30+
all: init lint test

0 commit comments

Comments
 (0)