22# test, coverage and lint
33# ##
44
5- PRE_CMD = uv run --
6-
75PYTEST_JUNIT_ARGS = --junitxml=tests_xml/tests.xml
86
97PYTEST_COV_ARGS = \
@@ -18,32 +16,32 @@ help: ## Use one of the following instructions:
1816
1917.PHONY : lint
2018lint : # # Static code analysis with Pylint
21- $( PRE_CMD ) pylint -ry climada > pylint.log || true
19+ pylint -ry climada > pylint.log || true
2220
2321.PHONY : unit_test
2422unit_test : # # Unit tests execution with coverage and xml reports
25- $( PRE_CMD ) pytest $(PYTEST_ARGS ) --ignore=climada/test climada/
23+ pytest $(PYTEST_ARGS ) --ignore=climada/test climada/
2624
2725.PHONY : install_test
2826install_test : # # Test installation was successful
29- $( PRE_CMD ) pytest $(PYTEST_JUNIT_ARGS ) --pyargs climada.engine.test.test_cost_benefit \
27+ pytest $(PYTEST_JUNIT_ARGS ) --pyargs climada.engine.test.test_cost_benefit \
3028 climada.engine.test.test_impact
3129
3230.PHONY : data_test
3331data_test : # # Test data APIs
34- $( PRE_CMD ) pytest $(PYTEST_JUNIT_ARGS ) script/jenkins/test_data_api.py
32+ pytest $(PYTEST_JUNIT_ARGS ) script/jenkins/test_data_api.py
3533
3634.PHONY : notebook_test
3735notebook_test : # # Test notebooks in doc/tutorial
38- $( PRE_CMD ) pytest $(PYTEST_JUNIT_ARGS ) script/jenkins/test_notebooks.py
36+ pytest $(PYTEST_JUNIT_ARGS ) script/jenkins/test_notebooks.py
3937
4038.PHONY : integ_test
4139integ_test : # # Integration tests execution with xml reports
42- $( PRE_CMD ) pytest $(PYTEST_ARGS ) climada/test/
40+ pytest $(PYTEST_ARGS ) climada/test/
4341
4442.PHONY : test
4543test : # # Unit and integration tests execution with coverage and xml reports
46- $( PRE_CMD ) pytest $(PYTEST_ARGS ) climada/
44+ pytest $(PYTEST_ARGS ) climada/
4745
4846.PHONY : ci-clean
4947ci-clean :
0 commit comments