File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 1
1
SHELL := /bin/bash
2
+ ifeq ($(OS ) ,Windows_NT)
3
+ PYTHON = python.exe
4
+ ACTIVATE_VENV = venv\Scripts\activate
5
+ else
6
+ PYTHON = python3.11
7
+ ACTIVATE_VENV = source venv/bin/activate
8
+ endif
9
+ PIP = $(PYTHON ) -m pip
2
10
3
11
ifneq ("$(wildcard .env) ","")
4
12
include .env
@@ -25,12 +33,14 @@ all: help
25
33
26
34
analyze :
27
35
cloc . --exclude-ext=svg,json,zip --vcs=git
36
+
28
37
init :
38
+ make clean && \
39
+ $(PYTHON ) -m venv venv && \
40
+ $(ACTIVATE_VENV ) && \
41
+ $(PIP ) install --upgrade pip && \
42
+ $(PIP ) install -r requirements.txt && \
29
43
npm install && \
30
- python3.11 -m venv venv && \
31
- source venv/bin/activate && \
32
- pip install --upgrade pip && \
33
- pip install -r requirements.txt && \
34
44
pre-commit install
35
45
36
46
activate :
@@ -42,10 +52,14 @@ test:
42
52
43
53
lint :
44
54
pre-commit run --all-files && \
55
+ pylint models && \
56
+ flake8 . && \
57
+ isort . && \
45
58
black .
46
59
47
60
clean :
48
- rm -rf venv && rm -rf node_modules
61
+ rm -rf venv && rm -rf node_modules && \
62
+ find ./models/ -name __pycache__ -type d -exec rm -rf {} +
49
63
50
64
release :
51
65
git commit -m " fix: force a new release" --allow-empty && git push
You can’t perform that action at this time.
0 commit comments