-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 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
install:
pip install -r requirements.txt
install-dev:
pip install -r requirements-dev.txt
format:
ruff --fix .
black .
docformatter --in-place .
lint:
ruff check .
black --check .
docformatter --check .
unit:
pytest -svvv tests
test: lint unit
coverage:
coverage run --source=cloner/ --branch -m pytest tests --junitxml=build/test.xml -v
coverage xml -i -o build/coverage.xml
coverage report
py-lint:
pylint cloner/
py-lint-test:
# C0116 - missing function docstring - does not apply to tests
pylint --disable=C0116 tests/
freeze:
CUSTOM_COMPILE_COMMAND="make freeze" pip-compile --no-emit-index-url -v -o requirements.txt pyproject.toml
CUSTOM_COMPILE_COMMAND="make freeze-dev" pip-compile --extra "dev" --no-emit-index-url -v -o requirements-dev.txt pyproject.toml
freeze-upgrade:
CUSTOM_COMPILE_COMMAND="make freeze" pip-compile --upgrade --no-emit-index-url -v -o requirements.txt pyproject.toml
CUSTOM_COMPILE_COMMAND="make freeze-dev" pip-compile --extra "dev" --upgrade --no-emit-index-url -v -o requirements-dev.txt pyproject.toml
.PHONY: install install-dev format lint unit test coverage freeze freeze-upgrade py-lint py-lint-test