python3-anticaptcha/Makefile

36 lines
922 B
Makefile

install:
cd src/ && pip install -e .
tests:
cd src/ && \
coverage run --rcfile=.coveragerc -m pytest -s tests --disable-warnings && \
coverage report --precision=3 --sort=cover --skip-empty --show-missing && \
coverage html --precision=3 --skip-empty -d coverage/html/ && \
coverage xml -o coverage/coverage.xml
refactor:
cd src/ && \
autoflake --in-place \
--recursive \
--remove-unused-variables \
--remove-duplicate-keys \
--remove-all-unused-imports \
--ignore-init-module-imports \
python3_anticaptcha/ setup.py && \
black python3_anticaptcha/ setup.py && \
isort python3_anticaptcha/ setup.py
lint:
cd src/ && \
autoflake --in-place --recursive python3_anticaptcha/ --check && \
black python3_anticaptcha/ --check && \
isort python3_anticaptcha/ --check-only
release:
pip install twine
python setup.py upload
upload:
pip install twine
cd src/ && python setup.py upload