diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-10-09 19:21:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-09 19:21:29 +0200 |
commit | e318675398216734cbeb579adefd3ea98d93d800 (patch) | |
tree | e97cae492471aad3e90abca97961ceea4e8cc7de /.github/workflows | |
parent | Merge pull request #34636 from WilliButz/repart/verity-hash-max-data-size (diff) | |
parent | ukify: Factor out sbat into constants (diff) | |
download | systemd-e318675398216734cbeb579adefd3ea98d93d800.tar.xz systemd-e318675398216734cbeb579adefd3ea98d93d800.zip |
Merge pull request #34641 from behrmann/ukifystyle
Type annotate and format ukify
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/linter.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 6cb07c95f9..53d1b1b959 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -35,3 +35,26 @@ jobs: MULTI_STATUS: false VALIDATE_ALL_CODEBASE: false VALIDATE_GITHUB_ACTIONS: true + + - name: Check that tabs are not used in Python code + run: sh -c '! git grep -P "\\t" -- src/ukify/ukify.py' + + - name: Install ruff and mypy + run: | + python3 -m pip install --break-system-packages --upgrade setuptools wheel pip + python3 -m pip install --break-system-packages mypy types-Pillow ruff + + - name: Run mypy + run: | + python3 -m mypy --version + python3 -m mypy src/ukify/ukify.py + + - name: Run ruff check + run: | + ruff --version + ruff check src/ukify/ukify.py + + - name: Run ruff format + run: | + ruff --version + ruff format --check src/ukify/ukify.py |