Commit 6ae89c9aefe140eb404cf1a17d508a0b093cc7c4

Authored by Christian Herdtweck
1 parent 34d8310b

Run pylint automatically when building with py3

I do not see how I could keep the code clean for both for pylint2 and
pylint3 at the same time, so do not even try.
.github/workflows/unittests.yml
@@ -13,6 +13,9 @@ jobs: @@ -13,6 +13,9 @@ jobs:
13 matrix: 13 matrix:
14 os: ["ubuntu-latest", "windows-latest", "macos-latest"] 14 os: ["ubuntu-latest", "windows-latest", "macos-latest"]
15 python-version: ["2.x", "3.x", "pypy-3.9"] 15 python-version: ["2.x", "3.x", "pypy-3.9"]
  16 + include:
  17 + - python-version: 3.x
  18 + runlint: 1
16 19
17 steps: 20 steps:
18 - uses: actions/checkout@v3 21 - uses: actions/checkout@v3
@@ -26,5 +29,9 @@ jobs: @@ -26,5 +29,9 @@ jobs:
26 cat requirements.txt 29 cat requirements.txt
27 python -m pip install --upgrade pip 30 python -m pip install --upgrade pip
28 pip install -r requirements.txt 31 pip install -r requirements.txt
  32 + pip install pylint
  33 + - name: Run pylint
  34 + if: ${{ matrix.runlint }}
  35 + run: pylint -E --ignore=thirdparty oletools tests
29 - name: Run unittests 36 - name: Run unittests
30 run: python -m unittest discover -f 37 run: python -m unittest discover -f
31 \ No newline at end of file 38 \ No newline at end of file