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
cb511ee4
Commit
cb511ee4
authored
Sep 25, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pre-generated reports for pep8/pylint when running diff-quality
parent
715aa698
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
rakelib/quality.rake
+13
-7
requirements/edx/github.txt
+1
-1
No files found.
rakelib/quality.rake
View file @
cb511ee4
...
...
@@ -48,13 +48,20 @@ dquality_dir = File.join(REPORT_DIR, "diff_quality")
directory
dquality_dir
desc
"Build the html diff quality reports, and print the reports to the console."
task
:quality
=>
dquality_dir
do
task
:quality
=>
[
dquality_dir
,
:install_python_prereqs
]
do
# Generage diff-quality html report for pep8, and print to console
sh
(
"diff-quality --violations=pep8 --html-report
#{
dquality_dir
}
/diff_quality_pep8.html"
)
sh
(
"diff-quality --violations=pep8"
)
# If pep8 reports exist, use those
# Otherwise, `diff-quality` will call pep8 itself
pep8_reports
=
FileList
[
File
.
join
(
REPORT_DIR
,
'**/pep8.report'
)].
join
(
' '
)
sh
(
"diff-quality --violations=pep8 --html-report
#{
dquality_dir
}
/diff_quality_pep8.html
#{
pep8_reports
}
"
)
sh
(
"diff-quality --violations=pep8
#{
pep8_reports
}
"
)
# Generage diff-quality html report for pylint, and print to console
# If pylint reports exist, use those
# Otherwise, `diff-quality` will call pylint itself
pylint_reports
=
FileList
[
File
.
join
(
REPORT_DIR
,
'**/pylint.report'
)].
join
(
' '
)
pythonpath_prefix
=
"PYTHONPATH=$PYTHONPATH:lms:lms/djangoapps:lms/lib:cms:cms/djangoapps:cms/lib:common:common/djangoapps:common/lib"
sh
(
"
#{
pythonpath_prefix
}
diff-quality --violations=pylint --html-report
#{
dquality_dir
}
/diff_quality_pylint.html"
)
sh
(
"
#{
pythonpath_prefix
}
diff-quality --violations=pylint"
)
end
\ No newline at end of file
sh
(
"
#{
pythonpath_prefix
}
diff-quality --violations=pylint --html-report
#{
dquality_dir
}
/diff_quality_pylint.html
#{
pylint_reports
}
"
)
sh
(
"
#{
pythonpath_prefix
}
diff-quality --violations=pylint
#{
pylint_reports
}
"
)
end
requirements/edx/github.txt
View file @
cb511ee4
...
...
@@ -16,6 +16,6 @@
# Our libraries:
-e git+https://github.com/edx/XBlock.git@8a66ca3#egg=XBlock
-e git+https://github.com/edx/codejail.git@0a1b468#egg=codejail
-e git+https://github.com/edx/diff-cover.git@v0.2.
4
#egg=diff_cover
-e git+https://github.com/edx/diff-cover.git@v0.2.
5
#egg=diff_cover
-e git+https://github.com/edx/js-test-tool.git@v0.1.1#egg=js_test_tool
-e git+https://github.com/edx/django-waffle.git@823a102e48#egg=django-waffle
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