Skip to content

Commit ea399d4

Browse files
committed
Set DEFAULT_TARGETS := mcpgateway in Makefile
Signed-off-by: Mihai Criveti <[email protected]>
1 parent 43bae43 commit ea399d4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,9 @@ images:
409409
# 🔍 LINTING & STATIC ANALYSIS
410410
# =============================================================================
411411
# help: 🔍 LINTING & STATIC ANALYSIS
412-
# help: TARGET=<path> - Override default target (mcpgateway tests)
412+
# help: TARGET=<path> - Override default target (mcpgateway)
413413
# help: Usage Examples:
414-
# help: make lint - Run all linters on default targets (mcpgateway tests)
414+
# help: make lint - Run all linters on default targets (mcpgateway)
415415
# help: make lint TARGET=myfile.py - Run file-aware linters on specific file
416416
# help: make lint myfile.py - Run file-aware linters on a file (shortcut)
417417
# help: make lint-quick myfile.py - Fast linters only (ruff, black, isort)
@@ -452,7 +452,7 @@ images:
452452
# help: vulture - Dead code detection
453453

454454
# Allow specific file/directory targeting
455-
DEFAULT_TARGETS := mcpgateway tests
455+
DEFAULT_TARGETS := mcpgateway
456456
TARGET ?= $(DEFAULT_TARGETS)
457457

458458
# Add dummy targets for file arguments passed to lint commands only
@@ -3660,14 +3660,14 @@ semgrep: ## 🔍 Security patterns & anti-patterns
36603660
@test -d "$(VENV_DIR)" || $(MAKE) venv
36613661
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
36623662
python3 -m pip install -q semgrep && \
3663-
$(VENV_DIR)/bin/semgrep --config=auto mcpgateway tests --exclude-rule python.lang.compatibility.python37.python37-compatibility-importlib2 || true"
3663+
$(VENV_DIR)/bin/semgrep --config=auto $(TARGET) --exclude-rule python.lang.compatibility.python37.python37-compatibility-importlib2 || true"
36643664

36653665
dodgy: ## 🔐 Suspicious code patterns
36663666
@echo "🔐 dodgy - scanning for hardcoded secrets..."
36673667
@test -d "$(VENV_DIR)" || $(MAKE) venv
36683668
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
36693669
python3 -m pip install -q dodgy && \
3670-
$(VENV_DIR)/bin/dodgy mcpgateway tests || true"
3670+
$(VENV_DIR)/bin/dodgy $(TARGET) || true"
36713671

36723672
dlint: ## 📏 Python best practices
36733673
@echo "📏 dlint - checking Python best practices..."
@@ -3681,8 +3681,8 @@ pyupgrade: ## ⬆️ Upgrade Python syntax
36813681
@test -d "$(VENV_DIR)" || $(MAKE) venv
36823682
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
36833683
python3 -m pip install -q pyupgrade && \
3684-
find mcpgateway tests -name '*.py' -exec $(VENV_DIR)/bin/pyupgrade --py312-plus --diff {} + || true"
3685-
@echo "💡 To apply changes, run: find mcpgateway tests -name '*.py' -exec $(VENV_DIR)/bin/pyupgrade --py312-plus {} +"
3684+
find $(TARGET) -name '*.py' -exec $(VENV_DIR)/bin/pyupgrade --py312-plus --diff {} + || true"
3685+
@echo "💡 To apply changes, run: find $(TARGET) -name '*.py' -exec $(VENV_DIR)/bin/pyupgrade --py312-plus {} +"
36863686

36873687
interrogate: ## 📝 Docstring coverage
36883688
@echo "📝 interrogate - checking docstring coverage..."
@@ -3804,12 +3804,12 @@ security-report: ## 📊 Generate comprehensive security repo
38043804
@echo "## Code Security Patterns (semgrep)" >> $(DOCS_DIR)/docs/security/report.md
38053805
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
38063806
python3 -m pip install -q semgrep && \
3807-
$(VENV_DIR)/bin/semgrep --config=auto mcpgateway tests --quiet || true" >> $(DOCS_DIR)/docs/security/report.md 2>&1
3807+
$(VENV_DIR)/bin/semgrep --config=auto $(TARGET) --quiet || true" >> $(DOCS_DIR)/docs/security/report.md 2>&1
38083808
@echo "" >> $(DOCS_DIR)/docs/security/report.md
38093809
@echo "## Suspicious Code Patterns (dodgy)" >> $(DOCS_DIR)/docs/security/report.md
38103810
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
38113811
python3 -m pip install -q dodgy && \
3812-
$(VENV_DIR)/bin/dodgy mcpgateway tests || true" >> $(DOCS_DIR)/docs/security/report.md 2>&1
3812+
$(VENV_DIR)/bin/dodgy $(TARGET) || true" >> $(DOCS_DIR)/docs/security/report.md 2>&1
38133813
@echo "" >> $(DOCS_DIR)/docs/security/report.md
38143814
@echo "## DevSkim Security Anti-patterns" >> $(DOCS_DIR)/docs/security/report.md
38153815
@if command -v devskim >/dev/null 2>&1 || [ -f "$$HOME/.dotnet/tools/devskim" ]; then \
@@ -3825,7 +3825,7 @@ security-fix: ## 🔧 Auto-fix security issues where possi
38253825
@echo "➤ Upgrading Python syntax with pyupgrade..."
38263826
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
38273827
python3 -m pip install -q pyupgrade && \
3828-
find mcpgateway tests -name '*.py' -exec $(VENV_DIR)/bin/pyupgrade --py312-plus {} +"
3828+
find $(TARGET) -name '*.py' -exec $(VENV_DIR)/bin/pyupgrade --py312-plus {} +"
38293829
@echo "➤ Updating dependencies to latest secure versions..."
38303830
@/bin/bash -c "source $(VENV_DIR)/bin/activate && \
38313831
python3 -m pip install --upgrade pip setuptools && \

0 commit comments

Comments
 (0)