ci: add compliance checks
Added GitLab compliance automation and quality checks for the Smart Bus Crowd Prediction project.
-
Fixed
.gitlab-ci.ymlinvalid YAML issue by removing Markdown code fences. -
Added explicit GitLab CI stages:
formatlinttype_checksecuritytestcoveragechangelog
-
Added CI jobs for:
- Ruff formatting
- Ruff linting
- Flake8
- Pylint
- Vulture
- Mypy
- Semgrep
- Gitleaks secret scanning
- Bandit static security analysis
- pip-audit dependency audit
- Pytest
- Coverage reporting
- Git-Cliff changelog automation
-
Added Semgrep to pre-commit hooks.
-
Added Git-Cliff configuration.
-
Fixed invalid
pytest-covversion inrequirements.txt. -
Added coverage configuration in
pyproject.toml. -
Ignored generated coverage artifacts in `.gitignore
-
Ran local tests successfully.
-
Result:
28 passed -
Coverage:
92% -
Required coverage threshold:
70%
After this MR is merged, the compliance checker should detect the GitLab CI pipeline, quality tooling, security checks, testing, coverage reporting, and changelog automation.