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
374ce67e
Commit
374ce67e
authored
Jun 07, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run pep8 and pylint on all libraries, not just the lms
parent
1d1af3be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
rakefile
+8
-8
No files found.
rakefile
View file @
374ce67e
...
...
@@ -44,17 +44,17 @@ task :default => [:pep8, :pylint, :test]
directory
REPORT_DIR
directory
LMS_REPORT_DIR
desc
"Run pep8 on all
of djangoapp
s"
task
:pep8
=>
LMS_
REPORT_DIR
do
sh
(
"pep8 --ignore=E501 lms/djangoapps
| tee
#{
LMS_
REPORT_DIR
}
/pep8.report"
)
desc
"Run pep8 on all
librarie
s"
task
:pep8
=>
REPORT_DIR
do
sh
(
"pep8 --ignore=E501 lms/djangoapps
common/lib/* | tee
#{
REPORT_DIR
}
/pep8.report"
)
end
desc
"Run pylint on all
of djangoapp
s"
task
:pylint
=>
LMS_
REPORT_DIR
do
ENV
[
'PYTHONPATH'
]
=
'lms/djangoapps'
Dir
[
"lms/djangoapps/*"
].
each
do
|
app
|
desc
"Run pylint on all
librarie
s"
task
:pylint
=>
REPORT_DIR
do
Dir
[
"lms/djangoapps/*"
,
"common/lib/*"
].
each
do
|
app
|
ENV
[
'PYTHONPATH'
]
=
File
.
dirname
(
app
)
app
=
File
.
basename
(
app
)
sh
(
"pylint -f parseable
#{
app
}
| tee
#{
LMS_
REPORT_DIR
}
/
#{
app
}
.pylint.report"
)
sh
(
"pylint -f parseable
#{
app
}
| tee
#{
REPORT_DIR
}
/
#{
app
}
.pylint.report"
)
end
end
...
...
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