-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (35 loc) · 936 Bytes
/
Copy pathMakefile
File metadata and controls
44 lines (35 loc) · 936 Bytes
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
.PHONY: help install install-dev test lint format clean docs
help:
@echo "Available commands:"
@echo " install Install production dependencies"
@echo " install-dev Install development dependencies"
@echo " test Run tests with pytest"
@echo " lint Run linting with flake8"
@echo " format Format code with black and isort"
@echo " clean Clean up temporary files"
@echo " docs Build documentation"
install:
pip install -r requirements.txt
install-dev:
pip install -r requirements.txt
pip install -r requirements-dev.txt
test:
pytest --cov=mysql_server --cov-report=html --cov-report=term
lint:
flake8 mysql_server.py
mypy mysql_server.py
format:
black mysql_server.py
isort mysql_server.py
clean:
rm -rf __pycache__/
rm -rf .pytest_cache/
rm -rf .coverage
rm -rf htmlcov/
rm -rf dist/
rm -rf build/
rm -rf *.egg-info/
docs:
mkdocs build
serve-docs:
mkdocs serve