2020-05-30 16:32:40 +00:00
|
|
|
install:
|
2024-10-04 14:49:51 +00:00
|
|
|
pip3 install -e .
|
|
|
|
|
|
|
|
remove:
|
|
|
|
pip3 uninstall python3_anticaptcha -y
|
2020-05-30 16:32:40 +00:00
|
|
|
|
2023-03-20 00:58:52 +00:00
|
|
|
tests: install
|
2023-03-20 01:00:40 +00:00
|
|
|
coverage run --rcfile=.coveragerc -m pytest --verbose --showlocals --pastebin=all tests --disable-warnings && \
|
2022-12-13 22:16:52 +00:00
|
|
|
coverage report --precision=3 --sort=cover --skip-empty --show-missing && \
|
2022-12-14 09:41:15 +00:00
|
|
|
coverage html --precision=3 --skip-empty -d coverage/html/ && \
|
|
|
|
coverage xml -o coverage/coverage.xml
|
2020-05-30 17:01:34 +00:00
|
|
|
|
2020-05-30 16:32:40 +00:00
|
|
|
refactor:
|
2022-12-14 16:24:07 +00:00
|
|
|
black docs/
|
|
|
|
isort docs/
|
|
|
|
|
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 \
|
2023-03-20 00:58:52 +00:00
|
|
|
src/ tests/ && \
|
|
|
|
black src/ tests/ && \
|
|
|
|
isort src/ tests/
|
2022-12-13 16:14:13 +00:00
|
|
|
|
|
|
|
lint:
|
2023-03-20 00:58:52 +00:00
|
|
|
autoflake --in-place --recursive src/ --check && \
|
|
|
|
black src/ --check && \
|
|
|
|
isort src/ --check-only
|
2022-12-14 09:41:15 +00:00
|
|
|
|
2024-10-04 14:46:39 +00:00
|
|
|
build:
|
|
|
|
pip3 install --upgrade build setuptools
|
|
|
|
python3 -m build
|
|
|
|
|
2022-12-14 09:41:15 +00:00
|
|
|
upload:
|
2024-10-04 14:46:39 +00:00
|
|
|
pip3 install twine wheel setuptools build
|
|
|
|
twine upload dist/*
|
2022-12-14 16:24:07 +00:00
|
|
|
|
2023-03-20 00:58:52 +00:00
|
|
|
doc: install
|
2022-12-14 16:24:07 +00:00
|
|
|
cd docs/ && \
|
|
|
|
make html -e
|