Files
pdfplumber/Makefile
T

39 lines
827 B
Makefile
Raw Normal View History

2024-06-11 16:33:52 -04:00
.PHONY: venv tests check-black check-flake lint format examples build
PYTHON := venv/bin/python
PIP = venv/bin/pip
2020-07-25 08:46:03 -04:00
venv:
2020-08-13 21:23:09 -04:00
python3 -m venv venv
2020-07-26 15:30:14 -04:00
${PIP} install --upgrade pip
2020-07-25 08:46:03 -04:00
${PIP} install -r requirements.txt
${PIP} install -r requirements-dev.txt
2020-07-25 09:15:09 -04:00
${PIP} install -e .
2020-07-25 08:46:03 -04:00
tests:
${PYTHON} -m pytest
${PYTHON} -m coverage html
check-black:
2020-12-16 22:30:44 -05:00
${PYTHON} -m black --check pdfplumber tests
2021-12-09 22:27:51 -05:00
check-isort:
2022-05-06 09:51:01 -04:00
${PYTHON} -m isort --profile black --check-only pdfplumber tests
2021-12-09 22:27:51 -05:00
check-flake:
2020-12-16 22:30:44 -05:00
${PYTHON} -m flake8 pdfplumber tests
2020-07-29 19:12:42 -04:00
2022-05-06 09:51:01 -04:00
check-mypy:
2023-01-24 17:27:22 -05:00
${PYTHON} -m mypy --strict --implicit-reexport pdfplumber
2022-05-06 09:51:01 -04:00
lint: check-flake check-mypy check-black check-isort
2020-08-13 08:58:13 -04:00
2020-07-29 19:12:42 -04:00
format:
2020-12-16 22:30:44 -05:00
${PYTHON} -m black pdfplumber tests
2022-05-06 09:51:01 -04:00
${PYTHON} -m isort --profile black pdfplumber tests
2022-05-31 15:50:50 -04:00
examples:
${PYTHON} -m nbexec.cli examples/notebooks
2022-10-01 09:45:06 -04:00
build:
${PYTHON} -m build