Skip to content

Commit

Permalink
Add Github action to run pylint
Browse files Browse the repository at this point in the history
- 120 character line length limit
- Disable all recommendations
  • Loading branch information
jrha committed Jul 16, 2024
1 parent 96a2a21 commit 7a6b0e6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pylint

on: [push]

jobs:
build:
runs-on: ubuntu-20.04
container:
image: python:2.7.18-buster
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint --max-line-length 120 --disable=R $(git ls-files '*.py')

0 comments on commit 7a6b0e6

Please sign in to comment.