mirror of
https://github.com/getsolus/packages.git
synced 2025-04-26 04:40:17 +03:00
ci: Add mypy linting for CI scripts
This commit is contained in:
parent
c6cd2fb98e
commit
adfe3fa0b9
3 changed files with 12 additions and 1 deletions
8
.github/workflows/script_lint.yml
vendored
8
.github/workflows/script_lint.yml
vendored
|
@ -21,4 +21,10 @@ jobs:
|
||||||
- name: flake8 Lint
|
- name: flake8 Lint
|
||||||
uses: py-actions/flake8@v2
|
uses: py-actions/flake8@v2
|
||||||
with:
|
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
3
.gitignore
vendored
|
@ -9,3 +9,6 @@
|
||||||
common/Go/yabi/yabi
|
common/Go/yabi/yabi
|
||||||
common/Go/ypkg/ypkg-tools
|
common/Go/ypkg/ypkg-tools
|
||||||
common/switch_repo_domains
|
common/switch_repo_domains
|
||||||
|
|
||||||
|
# Python caches
|
||||||
|
.mypy_cache
|
||||||
|
|
2
.mypy.ini
Normal file
2
.mypy.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[mypy]
|
||||||
|
strict = True
|
Loading…
Add table
Add a link
Reference in a new issue