2020-05-30 16:32:40 +00:00
|
|
|
install:
|
2022-12-14 09:41:15 +00:00
|
|
|
cd src/ && pip install -e .
|
2020-05-30 16:32:40 +00:00
|
|
|
|
2022-12-14 09:43:22 +00:00
|
|
|
tests:
|
2022-12-14 09:41:15 +00:00
|
|
|
cd src/ && \
|
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: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 09:41:15 +00:00
|
|
|
cd src/ && \
|
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:
|
2022-12-14 09:41:15 +00:00
|
|
|
cd src/ && \
|
2022-12-13 16:14:13 +00:00
|
|
|
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
|
2022-12-14 09:41:15 +00:00
|
|
|
|
|
|
|
upload:
|
|
|
|
pip install twine
|
|
|
|
cd src/ && python setup.py upload
|