forked from kiran94/prfiesta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
41 lines (29 loc) · 1.06 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
all: lint coverage
test:
poetry run pytest -vv
lint:
poetry run ruff check $(if $(GITHUB_ACTIONS),--format github,) .
format:
poetry run ruff check --fix .
coverage:
poetry run pytest -q --cov=prfiesta --cov-report=term # for local
poetry run pytest -q --cov=prfiesta --cov-report=html # for local
# for sonarqube
$(if $(GITHUB_ACTIONS),poetry run pytest -q --cov=prfiesta --cov-report=xml,)
# for github action
$(if $(GITHUB_ACTIONS),poetry run pytest -q --cov=prfiesta --cov-report=lcov,)
export_requirements:
poetry export --with dev --output requirements.txt
precommit_install:
pre-commit install
precommit_run:
pre-commit run --all-files
validate_notebooks:
poetry run bash ./notebooks/scripts/run_all.sh './notebooks/plots/*.ipynb' 'notebooks/plots'
poetry run bash ./notebooks/scripts/run_all.sh './notebooks/views/*.ipynb' 'notebooks/views'
integration_test:
poetry run papermill --cwd notebooks/misc ./notebooks/misc/integration_test.ipynb ./notebooks/misc/integration_test.ipynb
clean:
rm -rf ./htmlcov
rm -rf ./.pytest_cache
rm -rf ./.ruff_cache