2020-05-30 16:32:40 +00:00
|
|
|
install:
|
|
|
|
python setup.py install
|
|
|
|
|
|
|
|
remove:
|
|
|
|
pip uninstall python3-anticaptcha -y
|
|
|
|
|
2020-05-30 17:01:34 +00:00
|
|
|
test:
|
2022-12-13 22:16:52 +00:00
|
|
|
coverage run --rcfile=.coveragerc -m pytest -s tests --disable-warnings && \
|
|
|
|
coverage report --precision=3 --sort=cover --skip-empty --show-missing && \
|
2022-12-14 09:30:56 +00:00
|
|
|
coverage html --precision=3 --skip-empty -d html/ && \
|
|
|
|
coverage xml -o coverage.xml
|
2020-05-30 17:01:34 +00:00
|
|
|
|
2020-05-30 16:32:40 +00:00
|
|
|
refactor:
|
2022-12-13 16:14:13 +00:00
|
|
|
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:
|
|
|
|
autoflake --in-place --recursive python3_anticaptcha/ --check && \
|
|
|
|
black python3_anticaptcha/ --check && \
|
|
|
|
isort python3_anticaptcha/ --check-only
|
2020-05-30 16:32:40 +00:00
|
|
|
|
2020-11-10 21:47:23 +00:00
|
|
|
release:
|
2022-12-13 16:14:13 +00:00
|
|
|
pip install twine
|
2020-05-30 16:32:40 +00:00
|
|
|
python setup.py upload
|