Skip to content

Commit ea5e7f8

Browse files
committed
add mypy
1 parent 76acbf4 commit ea5e7f8

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.cirrus.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ analysis_linux_task:
157157
alias: analysis
158158
name: "NEXT Analysis"
159159
analysis_script:
160+
- poetry install
160161
- poetry run pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src --cov-branch tests
162+
- poetry run mypy src/ > mypy-report.txt || true # mypy exits with 1 if there are errors
161163
- uv venv
162164
- source .venv/bin/activate
163165
- uv pip install pysonar-scanner

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ sonar.projectName=Python Scanner
33
sonar.projectVersion=1.0.0
44
sonar.python.version=3.9,3.10,3.11,3.12,3.13
55
sonar.python.coverage.reportPaths=coverage.xml
6+
sonar.python.mypy.reportPaths=mypy-report.txt
67
sonar.analysisCache.enabled=true
78
sonar.sources=src
89
sonar.tests=tests

0 commit comments

Comments
 (0)