Skip to content

Commit

Permalink
using flake8 in its default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Hundemeier committed Dec 4, 2022
1 parent 0586fff commit e00cbdf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ jobs:
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings
flake8 . --count --exit-zero --statistics
# stop the build if flake reports any issues
flake8 . --statistics --show-source
- name: Test with pytest
run: |
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion sacn/messages/root_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
class RootLayer:
def __init__(self, length: int, cid: tuple, vector: tuple):
self.length = length
if(len(vector) != 4):
if (len(vector) != 4):
raise ValueError('the length of the vector is not 4!')
self._vector = vector
self.cid = cid
Expand Down

0 comments on commit e00cbdf

Please sign in to comment.