forked from apify/apify-client-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (37 loc) · 1.22 KB
/
Makefile
File metadata and controls
54 lines (37 loc) · 1.22 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
.PHONY: clean install-dev build publish twine-check lint unit-tests integration-tests type-check check-code format docs check-docs check-async-docstrings fix-async-docstrings check-changelog-entry
# This is default for local testing, but GitHub workflows override it to a higher value in CI
INTEGRATION_TESTS_CONCURRENCY = 1
clean:
rm -rf build dist .mypy_cache .pytest_cache src/*.egg-info __pycache__
install-dev:
python -m pip install --upgrade pip
pip install --no-cache-dir -e ".[dev]"
pre-commit install
build:
python -m build
publish:
python -m twine upload dist/*
twine-check:
python -m twine check dist/*
lint:
python3 -m flake8
unit-tests:
python3 -m pytest -n auto -ra tests/unit
integration-tests:
python3 -m pytest -n $(INTEGRATION_TESTS_CONCURRENCY) -ra tests/integration
type-check:
python3 -m mypy
check-code: lint check-async-docstrings type-check unit-tests
format:
python3 -m isort src tests
python3 -m autopep8 --in-place --recursive src tests
docs:
./docs/res/build.sh
check-docs:
./docs/res/check.sh
check-async-docstrings:
python3 scripts/check_async_docstrings.py
fix-async-docstrings:
python3 scripts/fix_async_docstrings.py
check-changelog-entry:
python3 scripts/check_version_in_changelog.py