Skip to content

Integrate mypy into CI#4800

Open
barnabasdomozi wants to merge 1 commit intoEricsson:masterfrom
barnabasdomozi:mypy_ci
Open

Integrate mypy into CI#4800
barnabasdomozi wants to merge 1 commit intoEricsson:masterfrom
barnabasdomozi:mypy_ci

Conversation

@barnabasdomozi
Copy link
Collaborator

@barnabasdomozi barnabasdomozi commented Mar 10, 2026

Added pyproject.toml, which defines the mypy configuration. As a first step, only the codechecker_common/ folder is checked by mypy. This can be extended later.

The first issue detected by mypy is that Report.report_hash could be None in several cases in the codebase.
Also added installation of stub package types-psutil for mypy.

@barnabasdomozi barnabasdomozi force-pushed the mypy_ci branch 3 times, most recently from 37ddaac to f7208c5 Compare March 10, 2026 16:02
Added pyproject.toml, which defines the mypy configuration.
As a first step, only the codechecker_common/ folder is checked
by mypy. This can be extended later.

The first issue detected by mypy is that Report.report_hash
could be None in several cases in the codebase.
Also added installation of stub package types-psutil for mypy.
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