Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pylint to git actions #20

Closed
ryanjameskennedy opened this issue Jan 3, 2024 · 0 comments · Fixed by #22
Closed

Add pylint to git actions #20

ryanjameskennedy opened this issue Jan 3, 2024 · 0 comments · Fixed by #22
Assignees

Comments

@ryanjameskennedy
Copy link
Owner

The following could be added to .github/workflows/pylint.yml:

name: Pylint

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3.10", "3.11", "3.12"]
    steps:
    - uses: actions/checkout@v3
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v3
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install pylint
        pip install -e .[dev]
    - name: Analysing the code with pylint
      run: |
        pylint --fail-under 9 $(git ls-files '*.py')
@ryanjameskennedy ryanjameskennedy self-assigned this Jan 3, 2024
@ryanjameskennedy ryanjameskennedy linked a pull request Jan 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant