-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (32 loc) · 756 Bytes
/
Makefile
File metadata and controls
47 lines (32 loc) · 756 Bytes
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
# Makefile
docs-build:
@mkdocs build
docs-deploy:
@mkdocs gh-deploy -m "docs: update documentation" -v --force
clean-docs:
@rm -rf site
unit-tests:
@pytest
unit-tests-cov:
@pytest --cov=odooghost --cov-report term-missing --cov-report=html
unit-tests-cov-fail:
@pytest --cov=odooghost --cov-report term-missing --cov-report=html --cov-fail-under=80 --junitxml=pytest.xml | tee pytest-coverage.txt
clean-cov:
@rm -rf .coverage
@rm -rf htmlcov
@rm -rf pytest.xml
@rm -rf pytest-coverage.txt
format-black:
@black .
format-isort:
@isort .
lint-black:
@black . --check
lint-isort:
@isort . --check
lint-bandit:
@bandit .
lint-ruff:
@ruff check .
format: format-black format-isort
lint: lint-black lint-isort lint-bandit lint-ruff