Skip to content

Commit fe6925b

Browse files
committed
remove more flake8
1 parent 84ce015 commit fe6925b

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/ci.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ jobs:
3131
# stop the build if there are Python syntax errors or undefined names
3232
flake8 . --exclude src/exabgp/vendoring/ --exclude build/ --count --select=E9,F63,F7,F82 --show-source --statistics
3333
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
34-
# Thomas: commenting the follow check because:
35-
# we have include only file to help with import path, and this invalid
36-
# we have file with tab and space, tab in comments are fine !
37-
# we have whitespace before ':' leave with it
38-
# my coding style - living like a rebel!
3934
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4035
4136
- name: Self Testing

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ syntax: poetry.lock
4444
# stop the build if there are Python syntax errors or undefined names
4545
poetry run flake8 . --exclude src/exabgp/vendoring/ --exclude build/ --count --select=E9,F63,F7,F82 --show-source --statistics
4646
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
47-
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
47+
# poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4848
poetry run bandit -r src
4949

5050
build: poetry.lock

pyproject.toml

+8-1
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,17 @@ statistics = true
120120
exclude = '.git,.tox,__pycache__,build,dist,tests/*,src/exabgp/vendoring/*,'
121121

122122
select = 'B,C,E,F,W,T4,B9'
123+
# E131 continuation line unaligned for hanging indent
124+
# E203 whitespace before ':'
123125
# E222 multiple spaces after operator
124126
# E231 missing whitespace after ','
125127
# E241 multiple spaces after ':'
126-
# E131 continuation line unaligned for hanging indent
128+
# E266
129+
# E501 line too long
130+
# W191
131+
# W503
132+
# F401 imported but unused
133+
# F403
127134
# the last , is required otherwise the last error ignore is not applied
128135
ignore = 'E222,E231,E241,E131,E203,E266,E501,W503,F403,F401,'
129136
variable-rgx = "[a-z_][a-z0-9_]{0,30}$"

0 commit comments

Comments
 (0)