Skip to content

ci: add flake8 and mypy lint jobs#11

Merged
guillaumedelre merged 1 commit into
developfrom
feat/ci-lint
May 14, 2026
Merged

ci: add flake8 and mypy lint jobs#11
guillaumedelre merged 1 commit into
developfrom
feat/ci-lint

Conversation

@guillaumedelre
Copy link
Copy Markdown
Owner

Summary

  • Add lint job to .github/workflows/ci.yml running:
    • flake8 bme280.py sensor_api.py --max-line-length=120
    • mypy bme280.py sensor_api.py --ignore-missing-imports
  • Fix pre-existing E501 violation in bme280.py:127 (pressure capabilities dict split across lines)
  • Add flake8>=7.0.0 and mypy>=1.0.0 to requirements-dev.txt

CI pipeline now has three independent jobs:

Job Tool Covers
lint flake8 + mypy Style violations, type errors
test pytest via Docker Business logic, API routes
security pip-audit CVEs in runtime deps

Test plan

  • PR check shows three jobs: lint, test, security
  • lint job passes on this branch
  • Introducing a type error → mypy turns red
  • Introducing a long line → flake8 turns red

Add a lint job to the CI pipeline running flake8 (max-line-length=120)
and mypy (--ignore-missing-imports) on bme280.py and sensor_api.py.
Fix the one pre-existing E501 violation in bme280.py (line 127).
Add flake8 and mypy to requirements-dev.txt.

Co-authored-by: agilicode <agilicode@gmail.com>
@guillaumedelre guillaumedelre merged commit 876d178 into develop May 14, 2026
3 checks passed
@guillaumedelre guillaumedelre deleted the feat/ci-lint branch May 14, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant