@@ -293,6 +293,7 @@ images:
293
293
# help: isort - Organise & sort imports with isort
294
294
# help: flake8 - PEP-8 style & logical errors
295
295
# help: pylint - Pylint static analysis
296
+ # help: markdownlint - Lint Markdown files with markdownlint (requires markdownlint-cli)
296
297
# help: mypy - Static type-checking with mypy
297
298
# help: bandit - Security scan with bandit
298
299
# help: pydocstyle - Docstring style checker
@@ -320,11 +321,11 @@ images:
320
321
# List of individual lint targets; lint loops over these
321
322
LINTERS := isort flake8 pylint mypy bandit pydocstyle pycodestyle pre-commit \
322
323
ruff pyright radon pyroma pyre spellcheck importchecker \
323
- pytype check-manifest
324
+ pytype check-manifest markdownlint
324
325
325
326
.PHONY : lint $(LINTERS ) black fawltydeps wily depend snakeviz pstats \
326
- spellcheck-sort tox \
327
- pytype check-manifest
327
+ spellcheck-sort tox pytype sbom
328
+
328
329
329
330
# # --------------------------------------------------------------------------- ##
330
331
# # Master target
@@ -356,6 +357,9 @@ flake8: ## 🐍 flake8 checks
356
357
pylint : # # 🐛 pylint checks
357
358
pylint mcpgateway
358
359
360
+ markdownlint : # # 📖 Markdown linting
361
+ markdownlint -c .markdownlint.json .
362
+
359
363
mypy : # # 🏷️ mypy type-checking
360
364
mypy mcpgateway
361
365
@@ -374,7 +378,7 @@ pre-commit: ## 🪄 Run pre-commit hooks
374
378
ruff : # # ⚡ Ruff lint + format
375
379
ruff check mcpgateway && ruff format mcpgateway
376
380
377
- ty : # # ⚡ Ty type checker
381
+ ty : # # ⚡ Ty type checker
378
382
ty check mcpgateway
379
383
380
384
pyright : # # 🏷️ Pyright type-checking
@@ -428,8 +432,7 @@ tox: ## 🧪 Multi-Python tox matrix
428
432
pdm python install 3.11 3.12
429
433
python -m tox -p 2
430
434
431
- .PHONY : sbom
432
- sbom :
435
+ sbom : # # 🛡️ Generate SBOM & security report
433
436
@echo " 🛡️ Generating SBOM & security report…"
434
437
@rm -Rf " $( VENV_DIR) .sbom"
435
438
@python3 -m venv " $( VENV_DIR) .sbom"
@@ -440,11 +443,11 @@ sbom:
440
443
@trivy sbom $(PROJECT_NAME ) .sbom.json | tee -a $(DOCS_DIR ) /docs/test/sbom.md
441
444
@/bin/bash -c " source $( VENV_DIR) .sbom/bin/activate && python3 -m pdm outdated | tee -a $( DOCS_DIR) /docs/test/sbom.md"
442
445
443
- pytype :
446
+ pytype : # # 🧠 Pytype static type analysis
444
447
@echo " 🧠 Pytype analysis…"
445
448
pytype -V 3.12 -j auto mcpgateway
446
449
447
- check-manifest :
450
+ check-manifest : # # 📦 Verify MANIFEST.in completeness
448
451
@echo " 📦 Verifying MANIFEST.in completeness…"
449
452
check-manifest
450
453
0 commit comments