Skip to content

Commit

Permalink
CI: add pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Mar 3, 2024
1 parent 561a3cc commit 24018c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
run: |
sudo apt update
sudo apt install -y python3-pip python3-tk xvfb libxrandr2 libegl1
pip3 install ogre-python
pip3 install ogre-python pylint
- uses: actions/checkout@v4
- name: Test
run: |
pylint ogre_mesh_viewer.py
cd test
xvfb-run timeout --preserve-status 5s python3 ../ogre_mesh_viewer.py cube.obj
2 changes: 1 addition & 1 deletion ogre_mesh_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,6 @@ def shutdown(self):
app.getRoot().startRendering()
app.closeApp()
except RuntimeError as e:
raise SystemExit(e)
raise SystemExit(e) from e

if not app.restart: break
4 changes: 4 additions & 0 deletions pylintrc.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool.pylint]
extension-pkg-allow-list = "Ogre"
disable = ["R", "C", "attribute-defined-outside-init", "redefined-builtin", "redefined-outer-name", "unused-argument", "protected-access"]
enable = ["consider-using-f-string"]

0 comments on commit 24018c0

Please sign in to comment.