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
70822dae
Commit
70822dae
authored
Sep 22, 2022
by
BO ZHANG
🏀
Browse files
ignore E722 (do not use bare except) in code style unit test
parent
ec8ee36a
Pipeline
#156
passed with stages
in 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pipelines/test_codestyle.py
View file @
70822dae
...
@@ -17,6 +17,6 @@ class TestCodeFormat(unittest.TestCase):
...
@@ -17,6 +17,6 @@ class TestCodeFormat(unittest.TestCase):
for
line
in
result
.
get_statistics
():
for
line
in
result
.
get_statistics
():
print
(
line
)
print
(
line
)
print
(
"*** Please use the command below to check code yourself!!! ***"
)
print
(
"*** Please use the command below to check code yourself!!! ***"
)
print
(
"pycodestyle ./**/*.py --ignore=E121,E123,E126,E226,E24,E704,W503,W504,E501"
)
print
(
"pycodestyle ./**/*.py --ignore=E121,E123,E126,E226,E24,E704,W503,W504,E501
,E722
"
)
print
(
"========================================================"
)
print
(
"========================================================"
)
self
.
assertEqual
(
result
.
total_errors
,
0
,
"Found code style errors (and warnings)."
)
self
.
assertEqual
(
result
.
total_errors
,
0
,
"Found code style errors (and warnings)."
)
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