-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (34 loc) · 946 Bytes
/
Makefile
File metadata and controls
48 lines (34 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
CHROMEDRIVER_VERSION=99.0.4844.17
CHROMEDRIVER_DIR=${PWD}/chromedriver
.PHONY: lint fmt typecheck build docs install test test_e2e chromedriver
build:
python -m build
install: install_test install_docs install_pkg
install_test:
pip install .[tests]
install_docs:
pip install .[docs]
install_pkg:
python -m pip install --upgrade pip wheel
pip install .
chromedriver:
mkdir -p ${CHROMEDRIVER_DIR}
wget -q -P ${CHROMEDRIVER_DIR} "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip"
unzip ${CHROMEDRIVER_DIR}/chromedriver* -d ${CHROMEDRIVER_DIR}
rm ${CHROMEDRIVER_DIR}/chromedriver_linux64.zip
test:
pytest
test_e2e:
PATH=$$PWD/chromedriver:$$PATH pytest -m e2e --override-ini="addopts="
clean:
rm -r build chromedriver
lint:
ruff check .
ruff format --check .
fmt:
ruff check --fix .
ruff format .
typecheck:
mypy python_anticaptcha
docs:
sphinx-build -W docs /dev/shm/sphinx