Skip to content

Commit

Permalink
ignoring more codes for flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
pjflux2001 committed Oct 14, 2023
1 parent 62ce50f commit b053a43
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 90 chars wide
flake8 ./src --count --exit-zero --max-complexity=10 --max-line-length=90 --statistics
flake8 ./src --ignore=E501,W503,E402,F401,F403,E722,F841,W504 --max-line-length=90 2>&1
flake8 ./src --ignore=E501,W503,E402,F401,F403,E722,F841,W504,C901,E302,E226,E126 --max-line-length=90 2>&1
yapf -d --recursive ./src --style=.style.yapf 2>&1
isort ./src -c -v
- name: Test with pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu20_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
# stop the build if there are Python syntax errors or undefined names
flake8 ./src --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 ./src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 ./src --count --exit-zero --max-complexity=50 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest -v
Expand Down
1 change: 0 additions & 1 deletion src/polyphy/core/discrete2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ def __init__(self,

if batch_mode is False:
window.destroy()
# noqa: C901


class PPPostSimulation_2DDiscrete(PPPostSimulation):
Expand Down
2 changes: 1 addition & 1 deletion src/polyphy/core/discrete3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def __init__(self, ppInternalData, ppConfig, batch_mode=False, num_iterations=-1

if not batch_mode:
window.destroy()
# noqa: C901


class PPPostSimulation_3DDiscrete(PPPostSimulation):
def __init__(self, ppInternalData):
Expand Down

0 comments on commit b053a43

Please sign in to comment.