forked from apify/apify-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (28 loc) · 959 Bytes
/
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
.PHONY: clean install-dev lint unit-tests integration-tests type-check check-code format docs check-docs 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 --upgrade setuptools wheel
pip install --no-cache-dir -e ".[dev]"
pre-commit install
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 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-changelog-entry:
python3 scripts/check_version_in_changelog.py