-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (29 loc) · 874 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
32
33
34
35
36
37
38
39
40
41
42
default:
@echo "an explicit target is required"
SHELL=/usr/bin/env bash
PYTHON_FILES=gitmine/*.py gitmine/commands/*.py gitmine/models/*.py
install:
pip install -r requirements.txt
pip install -r dev-requirements.txt
lint:
pylint $(PYTHON_FILES)
docstyle:
pydocstyle --convention=google $(PYTHON_FILES)
mypy:
mypy $(PYTHON_FILES)
flake8:
flake8 $(PYTHON_FILES)
SORT=LC_ALL=C sort --key=1,1 --key=3V --field-separator="="
reqs-fix:
$(SORT) --output=requirements.txt requirements.txt
$(SORT) --output=requirements-dev.txt requirements-dev.txt
reqs-check:
$(SORT) --check requirements.txt
$(SORT) --check requirements-dev.txt
black-fix:
isort $(PYTHON_FILES)
black --config pyproject.toml $(PYTHON_FILES)
black-check:
isort --check $(PYTHON_FILES)
black --config pyproject.toml --check $(PYTHON_FILES)
check: reqs-check black-check flake8 mypy lint