Skip to content

Commit

Permalink
Add pylint to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dechamps committed Nov 13, 2023
1 parent 3a10c3e commit 54d5107
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,15 @@ jobs:
with:
name: sdist
path: dist/videojitter-*.tar.gz
if-no-files-found: error
if-no-files-found: error
pylint:
runs-on: ubuntu-latest
needs: build-sdist
steps:
- uses: actions/download-artifact@v3
with:
name: sdist
- run: tar --gzip --extract --verbose --strip-components=1 --file videojitter-*.tar.gz
- run: pip install --requirement pylint-requirements.txt --requirement requirements.txt
# TODO: also pylint the test code
- run: pylint src
3 changes: 3 additions & 0 deletions pylint-requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# pip-tools `pip-compile` input file for pinning pylint.
-c requirements.txt
pylint
20 changes: 20 additions & 0 deletions pylint-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --strip-extras pylint-requirements.in
#
astroid==3.0.1
# via pylint
dill==0.3.7
# via pylint
isort==5.12.0
# via pylint
mccabe==0.7.0
# via pylint
platformdirs==4.0.0
# via pylint
pylint==3.0.2
# via -r pylint-requirements.in
tomlkit==0.12.2
# via pylint

0 comments on commit 54d5107

Please sign in to comment.