Skip to content

Commit 25717af

Browse files
author
notactuallyfinn
committed
Use flake8 instead of pylint for linting
1 parent 0235306 commit 25717af

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# SPDX-FileContributor: Michael Meinel
66
# SPDX-FileContributor: Michael Fritzsche
77

8-
name: Pylint
8+
name: Flake8
99

1010
on: [push]
1111

@@ -24,9 +24,12 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install pylint
27+
pip install flake8
2828
pip install .
2929
pip install .[dev]
30-
- name: Analysing the code with pylint
30+
- name: Analysing the code with flake8
3131
run: |
32-
pylint $(git ls-files 'src/*.py')
32+
# stop the build if there are Python syntax errors or undefined names
33+
flake8 ./test/ ./src/ --count --select=E9,F63,F7,F82 --show-source --statistics
34+
# Stop build on errors
35+
flake8 ./test/ ./src/ --count --statistics

0 commit comments

Comments
 (0)