Skip to content

Commit 3fb5886

Browse files
colindeanGitHub Enterprise
authored andcommitted
Extracts source locations to variables
1 parent 38ca25c commit 3fb5886

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
## N.b. this isn't really setup for Linux, but probably works.
1010
##
1111

12+
## Source location
13+
MODULE_BASE_DIR = example
14+
TESTS_BASE_DIR = tests
15+
1216
## Pythonic variables
1317
# These are set to determine some version information and normal paths to tooling.
1418
# Python installation artifacts
@@ -94,20 +98,20 @@ test-all: test-unittests test-integration ## Run all tests
9498

9599
.PHONY: test-unittests
96100
test-unittests: ## Run unit tests
97-
$(PYTEST) tests/unit
101+
$(PYTEST) $(TESTS_BASE_DIR)/unit
98102
# $(PYTEST) tests -m unittest
99103

100104
.PHONY: test-integration
101105
test-integration: ## Run integration tests
102-
$(PYTEST) tests/integration
106+
$(PYTEST) $(TESTS_BASE_DIR)/integration
103107
# $(PYTEST) tests -m integration
104108

105109
.PHONY: check
106110
check: check-py-ruff-format check-py-ruff-lint check-py-mypy ## Run all checks
107111

108112
.PHONY: check-py-ruff-lint
109113
check-py-ruff-lint: ## Run ruff linter
110-
$(RUFF) $(RUFF_OPTS) tgt_measurement tests || \
114+
$(RUFF) $(RUFF_OPTS) $(MODULE_BASE_DIR) $(TESTS_BASE_DIR) || \
111115
(echo "$(COLOR_RED)Run '$(notdir $(MAKE)) check-py-ruff-fix' to fix some of these automatically if [*] appears above, then run '$(notdir $(MAKE)) $(MAKECMDGOALS)' again." && false)
112116

113117
.PHONY: check-py-ruff-fix

0 commit comments

Comments
 (0)