osbuild: fix optional-types
Optional types were provided in places but were not always correct. Add mypy checking and fix those that fail(ed).
This commit is contained in:
parent
6e66c69608
commit
3fd864e5a9
29 changed files with 209 additions and 111 deletions
12
.github/workflows/checks.yml
vendored
12
.github/workflows/checks.yml
vendored
|
|
@ -56,3 +56,15 @@ jobs:
|
|||
with:
|
||||
ignore_words_list: msdos, pullrequest
|
||||
skip: ./.git,coverity,rpmbuild,samples
|
||||
|
||||
mypy:
|
||||
name: "Mypy check"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v2
|
||||
- name: Check files with mypy
|
||||
run: |
|
||||
sudo apt install python3-pip -y
|
||||
sudo pip install mypy types-pyyaml jsonschema mako
|
||||
mypy osbuild
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue