-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (37 loc) · 1.14 KB
/
Makefile
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
49
50
51
52
53
54
SRC_DIR=.
TESTS_DIR=tests
REFERENCES_DIR=docs/references
PACKAGE_DIR=playwright_localstorage
mypy:
poetry run mypy --config formatters-cfg.toml $(SRC_DIR)
flake:
poetry run flake8 --toml-config formatters-cfg.toml $(SRC_DIR)
doc-lint:
poetry run lazydocs --validate --output-path $(REFERENCES_DIR) $(SRC_DIR)
black:
poetry run black --config formatters-cfg.toml $(SRC_DIR)
poetry-check:
poetry check
black-lint:
poetry run black --check --config formatters-cfg.toml $(SRC_DIR)
isort:
poetry run isort --settings-path formatters-cfg.toml $(SRC_DIR)
format: black isort
remove-docs:
rm -rf $(REFERENCES_DIR)/tests.* $(REFERENCES_DIR)/playwright_localstorage.md
build:
poetry build
lint: flake mypy black-lint poetry-check doc-lint remove-docs
test:
poetry run pytest --browser=$(browser) --cov=$(PACKAGE_DIR) --cov-branch --cov-report=xml --numprocesses logical $(TESTS_DIR)
install:
poetry install --no-root
lock:
poetry lock --no-update
browser-install:
poetry run playwright install-deps $(browser)
poetry run playwright install $(browser)
mkdocs-serve:
poetry run mkdocs serve
mkdocs-deploy:
poetry run mkdocs gh-deploy --force