Files
pdfmajor/Makefile
2020-11-02 19:57:26 -05:00

34 lines
729 B
Makefile

install-development:
python3 -m venv venv
./venv/bin/pip install -e .[dev]
clean:
rm -rf venv
rm -rf build
rm -rf dist
rm -rf *.egg-info
lint:
autoflake --remove-all-unused-imports --ignore-init-module-imports --remove-duplicate-keys --remove-unused-variables -r -i pdfmajor
autoflake --remove-all-unused-imports --ignore-init-module-imports --remove-duplicate-keys --remove-unused-variables -r -i tests
isort pdfmajor
black pdfmajor
isort tests
black tests
mypy pdfmajor
mypy tests
bandit -r pdfmajor
test:
./venv/bin/python -m unittest discover tests
build-docs:
mkdocs build
deploy:
python setup.py sdist bdist_wheel
git tag $(cat .version)
git push -u origin $(cat .version)
twine upload dist/*