Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
fc23995e
Commit
fc23995e
authored
Sep 22, 2022
by
BO ZHANG
🏀
Browse files
ignore E722
parent
8b0d510a
Pipeline
#158
passed with stages
in 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pipelines/test_codestyle.py
View file @
fc23995e
...
...
@@ -8,7 +8,7 @@ class TestCodeFormat(unittest.TestCase):
def
test_codestyle_conformance
(
self
):
"""Test that we conform to PEP-8."""
style
=
pycodestyle
.
StyleGuide
(
quiet
=
True
,
ignore
=
[
"E121"
,
"E123"
,
"E126"
,
"E226"
,
"E24"
,
"E704"
,
"W503"
,
"W504"
,
"E501"
])
quiet
=
True
,
ignore
=
[
"E121"
,
"E123"
,
"E126"
,
"E226"
,
"E24"
,
"E704"
,
"W503"
,
"W504"
,
"E501"
,
"E722"
])
result
=
style
.
check_files
(
glob
.
glob
(
"./**/*.py"
))
print
(
"================ pycodestyle statistics ================"
)
if
result
.
total_errors
==
0
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment