-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 865 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
PYTHON_EXE?=python3
ACTIVATE?=. bin/activate;
dev:
@echo "-> Setting up your environment"
@${PYTHON_EXE} -m venv .
@${ACTIVATE} pip install -r etc/requirements.txt
package: format test
@echo "-> Clearing Redundant Build Files"
@rm -rf dist || true
@rm -rf build || true
@echo "-> Building Package"
@${ACTIVATE} ${PYTHON_EXE} -m build
format:
@echo "-> Making file Checks"
@${ACTIVATE} black src/LicenseClassifier
@${ACTIVATE} isort src/LicenseClassifier
test:
@echo "-> Running Tests"
@${ACTIVATE} ${PYTHON_EXE} -m unittest discover src
check:
@echo "-> Run pycodestyle (PEP8) validation"
@${ACTIVATE} pycodestyle --max-line-length=88 src/LicenseClassifier
@echo "-> Run isort imports ordering validation"
@${ACTIVATE} isort --check-only src/LicenseClassifier
@echo "-> Run black validation"
@${ACTIVATE} black --check src/LicenseClassifier