pylint.yml 626 B

123456789101112131415161718192021222324
  1. name: Pylint
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. strategy:
  7. matrix:
  8. python-version: ["3.9"]
  9. steps:
  10. - uses: actions/checkout@v3
  11. - name: Set up Python ${{ matrix.python-version }}
  12. uses: actions/setup-python@v3
  13. with:
  14. python-version: ${{ matrix.python-version }}
  15. - name: Install dependencies
  16. run: |
  17. python -m pip install --upgrade pip
  18. pip install pylint
  19. pip install -r requirements.txt
  20. - name: Analysing the code with pylint
  21. run: |
  22. pylint --disable=C0114 --disable=C0115 --disable=C0116 $(git ls-files '*.py')