-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
37 lines (28 loc) · 899 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
.PHONY: install-dev clean format check install uninstall test diff-test
install-dev:
python3 -m pip install -U pip
python3 -m pip install -r requirements/requirements-dev.txt
clean:
rm -rf build
rm -rf dist
rm -rf *.egg-info
find . -name "*pycache*" | xargs rm -rf
format:
black pgx
blackdoc pgx
isort pgx
check:
black pgx --check --diff
blackdoc pgx --check
flake8 --config pyproject.toml --ignore E203,E501,W503,E704,E741 pgx
mypy --config pyproject.toml pgx --ignore-missing-imports
isort pgx --check --diff
install:
python3 -m pip install -U pip setuptools
python3 -m pip install .
uninstall:
python3 -m pip uninstall pgx -y
test:
python3 -m pytest -n 4 -vv tests --doctest-modules pgx --ignore pgx/experimental
test-with-codecov:
python3 -m pytest -n 4 -vv tests --doctest-modules pgx --ignore pgx/experimental --cov=pgx --cov-report=term-missing --cov-report=html