Skip to content

Commit

Permalink
chore: add pylint and appropriate fixes for python script
Browse files Browse the repository at this point in the history
  • Loading branch information
kasia-kujawa committed Jun 20, 2024
1 parent 2231d0f commit 32ab8c3
Show file tree
Hide file tree
Showing 4 changed files with 647 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@ on:
- 'release-v[0-9]+.[0-9]+'

jobs:
shellcheck:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install shellcheck
- name: Install shellcheck
run: |
curl --retry 10 --retry-max-time 120 --retry-delay 5 -Lo- https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz | tar -xJf -
sudo cp shellcheck-v0.7.1/shellcheck /usr/local/bin && rm -rf shellcheck-v0.7.1
- name: shellcheck
run: make shellcheck

- name: Install pylint
run: sudo apt-get install --yes pylint
- name: Run pylint
run: make pylint

test-bundle-status:
name: Test whether bundle.yaml is up to date
runs-on: ubuntu-20.04
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,9 @@ update-components-images:

generate-watches:
./scripts/generate_watches.py

pylint:
pylint --rcfile=pylint.rc scripts/*.py

autopep8:
autopep8 --in-place scripts/*.py
Loading

0 comments on commit 32ab8c3

Please sign in to comment.