forked from MichaelCurrin/github-reporting-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (45 loc) Β· 1.19 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
CONFIG_TEMPL = app.template.yml
CONFIG_LOCAL = app.local.yml
default: install install-dev
all: install install-dev checks
h help:
@grep '^[a-z]' Makefile
install:
pip install pip --upgrade
pip install -r requirements.txt
install-dev:
pip install -r requirements-dev.txt
mypy --install-types --non-interactive
upgrade:
pip install pip --upgrade
pip install -r requirements.txt --upgrade
pip install -r requirements-dev.txt --upgrade
config:
cd ghgql/etc && \
cp $(CONFIG_TEMPL) $(CONFIG_LOCAL) && \
open $(CONFIG_LOCAL)
fmt-fix:
black .
isort .
fmt-check:
black . --diff --check
isort . --check
l lint:
flake8 . --select=E9,F63,F7,F82 --show-source
flake8 . --exit-zero
t typecheck:
mypy ghgql
checks: fmt-check lint typecheck
demo:
# Basic demo.
cd ghgql && python -m demo.basic
# Variables demo.
cd ghgql && python -m demo.variables
# Paginate demo.
cd ghgql && python -m demo.paginate
# Reports with hardcoded values, useful for the codeowner to test changes.
report-commit:
cd ghgql && ./repo_commits.py MichaelCurrin github-reporting-py
report-counts:
cd ghgql && ./repos_and_commit_counts.py owner MichaelCurrin start 2021-01-01
report: report-commit report-counts