Skip to content

ci: add compliance checks

Yuvika Malgari requested to merge yuvi into main

Added GitLab compliance automation and quality checks for the Smart Bus Crowd Prediction project.

  • Fixed .gitlab-ci.yml invalid YAML issue by removing Markdown code fences.

  • Added explicit GitLab CI stages:

    • format
    • lint
    • type_check
    • security
    • test
    • coverage
    • changelog
  • 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-cov version in requirements.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.

Merge request reports

Loading