ci: Add mypy linting for CI scripts

This commit is contained in:
Silke Hofstra 2023-10-07 17:08:17 +02:00 committed by Rune Morling
parent c6cd2fb98e
commit adfe3fa0b9
3 changed files with 12 additions and 1 deletions

View file

@ -21,4 +21,10 @@ jobs:
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
path: "common/CI"
path: common/CI
- name: mypy lint
uses: jpetrucciani/mypy-check@master
with:
path: common/CI
python_version: "3.10"
requirements: types-PyYAML

3
.gitignore vendored
View file

@ -9,3 +9,6 @@
common/Go/yabi/yabi
common/Go/ypkg/ypkg-tools
common/switch_repo_domains
# Python caches
.mypy_cache

2
.mypy.ini Normal file
View file

@ -0,0 +1,2 @@
[mypy]
strict = True