Skip to content

Commit

Permalink
Added mypy line coverage (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammar92 committed Jun 10, 2024
1 parent c188083 commit e089db8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pre_commit_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
cache: pip

- name: Install pre-commit
run: pip install pre-commit==3.6.0
run: pip install pre-commit==3.7.0

- uses: actions/cache@v4
with:
Expand All @@ -32,3 +32,9 @@ jobs:

- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure --color always

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: pre-commit-results
path: mypy/coverage.json
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ repos:
rev: v1.10.0
hooks:
- id: mypy
args:
[
"--ignore-missing-imports",
"--scripts-are-modules",
"--linecoverage-report",
"mypy/",
]
additional_dependencies:
- types-pyyaml
- types-cachetools
Expand Down
3 changes: 3 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ sonar.links.scm=https://github.com/minvws/nl-kat-coordination/
# Source encoding
sonar.sourceEncoding=UTF-8

# Python language configuration
sonar.python.version=3.10

sonar.python.mypy.reportPaths=mypy/coverage.json

# Analysis scoping
# sonar.sources=assets,public,src,templates
# sonar.tests=tests
Expand Down

0 comments on commit e089db8

Please sign in to comment.