-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (54 loc) · 1.77 KB
/
Makefile
File metadata and controls
77 lines (54 loc) · 1.77 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
-include $(PWD)/.env
export
REGISTRY=10.11.0.9:5000
MKDOCS_ENV=DISABLE_MKDOCS_2_WARNING=true NO_MKDOCS_2_WARNING=1
check: swagger-update test typecheck lint swagger-lint build
build: clean
poetry build
clean:
rm -rf dist
lock:
poetry lock
test:
poetry run pytest
typecheck:
poetry run mypy avito
profile:
poetry run pytest --profile-svg
fmt:
poetry run ruff format .
lint:
poetry run ruff check .
swagger-update:
poetry run python scripts/download_avito_api_specs.py --clean
swagger-lint: swagger-update
poetry run python scripts/lint_swagger_bindings.py --strict
swagger-coverage: swagger-lint
poetry run pytest tests/core/test_swagger.py tests/core/test_swagger_discovery.py tests/core/test_swagger_linter.py tests/core/test_swagger_report.py tests/core/test_swagger_registry.py tests/contracts/test_swagger_contracts.py
minor: check
poetry version minor
patch: check
poetry version patch
major: check
poetry version major
release:
poetry publish --no-interaction
docs-serve:
$(MKDOCS_ENV) poetry run mkdocs serve
docs-strict:
$(MKDOCS_ENV) poetry run mkdocs build --strict
poetry run python scripts/lint_swagger_bindings.py --strict
poetry run pytest tests/docs/
docs-build: docs-strict
docs-report:
poetry run python scripts/lint_swagger_bindings.py --json --strict --output swagger-bindings-report.json
docs-check: docs-strict
ln -sfn . site/avito_python_api
lychee --root-dir "$(PWD)/site" --exclude "avito\.ru" --exclude "^https://p141592\.github\.io/avito_python_api/" --retry-wait-time 5 --max-retries 3 --timeout 30 site/
qa-docs:
poetry run pydocstyle \
avito/client.py avito/config.py \
avito/core/exceptions.py avito/core/pagination.py \
avito/*/domain.py \
avito/testing/fake_transport.py
poetry run interrogate avito/ --fail-under=0 --quiet