summaryrefslogtreecommitdiff
path: root/.github/workflows/unused-imports.yml
blob: d6e820ae61ff0650ae1f0c20b4478ee482feb61a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: Check for unused imports using Pylint
on:
  pull_request_target:
    types: [opened, reopened, ready_for_review, locked]

jobs:
  Check-Unused-Imports:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Set up Python
        uses: actions/setup-python@v3
        with:
          python-version: 3.11
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install pylint
      - name: Analysing the code with pylint
        run:  make unused-imports