Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d981f98b
Commit
d981f98b
authored
Nov 12, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5814 from edx/disable-pylint-todo-comments
Pylint: ignore TODO comments
parents
dd38f523
9902dcb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
pavelib/quality.py
+10
-5
No files found.
pavelib/quality.py
View file @
d981f98b
...
...
@@ -30,7 +30,9 @@ def run_pylint(options):
# This makes the folder if it doesn't already exist.
report_dir
=
(
Env
.
REPORT_DIR
/
system
)
.
makedirs_p
()
flags
=
'-E'
if
errors
else
''
flags
=
[]
if
errors
:
flags
.
append
(
"--errors-only"
)
apps
=
[
system
]
...
...
@@ -51,7 +53,7 @@ def run_pylint(options):
"{pythonpath_prefix} pylint {flags} -f parseable {apps} | "
"tee {report_dir}/pylint.report"
.
format
(
pythonpath_prefix
=
pythonpath_prefix
,
flags
=
flags
,
flags
=
" "
.
join
(
flags
)
,
apps
=
apps_list
,
report_dir
=
report_dir
)
...
...
@@ -182,12 +184,15 @@ def run_quality(options):
try
:
sh
(
"{pythonpath_prefix} diff-quality --violations=pylint {pylint_reports} {percentage_string} "
"--html-report {dquality_dir}/diff_quality_pylint.html"
.
format
(
"{pythonpath_prefix} diff-quality --violations=pylint "
"{pylint_reports} {percentage_string} "
"--html-report {dquality_dir}/diff_quality_pylint.html "
"--options='{pylint_options}'"
.
format
(
pythonpath_prefix
=
pythonpath_prefix
,
pylint_reports
=
pylint_reports
,
percentage_string
=
percentage_string
,
dquality_dir
=
dquality_dir
dquality_dir
=
dquality_dir
,
pylint_options
=
"--disable=fixme"
,
)
)
except
BuildFailure
,
error_message
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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