We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00db387 commit a2ec58bCopy full SHA for a2ec58b
.github/workflows/linting.yml
@@ -22,4 +22,10 @@ jobs:
22
23
- name: Run flake8 to verify PEP8-compliance of Python code
24
run: |
25
- flake8 --exclude ./easybuild/tools/py2vs3/py3.py
+ # don't check py2vs3/py3.py when testing with Python 2, and vice versa
26
+ if [[ "${{ matrix.python-version }}" =~ "2." ]]; then
27
+ py_excl=py3
28
+ else
29
+ py_excl=py2
30
+ fi
31
+ flake8 --exclude ./easybuild/tools/py2vs3/${py_excl}.py
0 commit comments