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
fcf77c5c
Commit
fcf77c5c
authored
Apr 17, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run pylint in fewer larger batches
parent
4615f0d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
rakefile
+11
-7
No files found.
rakefile
View file @
fcf77c5c
...
@@ -141,16 +141,20 @@ end
...
@@ -141,16 +141,20 @@ end
desc
"Run pylint on all
#{
system
}
code"
desc
"Run pylint on all
#{
system
}
code"
task
"pylint_
#{
system
}
"
=>
report_dir
do
task
"pylint_
#{
system
}
"
=>
report_dir
do
Dir
[
"
#{
system
}
/*.py"
,
"
#{
system
}
/djangoapps/*"
,
"
#{
system
}
/lib/*"
].
each
do
|
app
|
apps
=
Dir
[
"
#{
system
}
/*.py"
,
"
#{
system
}
/djangoapps/*"
,
"
#{
system
}
/lib/*"
].
map
do
|
app
|
pythonpath_prefix
=
"PYTHONPATH=
#{
system
}
:
#{
system
}
/djangoapps:
#{
system
}
/lib:common/djangoapps:common/lib"
File
.
basename
(
app
)
app
=
File
.
basename
(
app
)
end
.
select
do
|
app
|
app
!=~
/.pyc$/
end
.
map
do
|
app
|
if
app
=~
/.py$/
if
app
=~
/.py$/
app
=
app
.
gsub
(
'.py'
,
''
)
app
.
gsub
(
'.py'
,
''
)
els
if
app
=~
/.pyc$/
els
e
next
app
end
end
sh
(
"
#{
pythonpath_prefix
}
pylint --rcfile=.pylintrc -f parseable
#{
app
}
| tee
#{
report_dir
}
/
#{
app
}
.pylint.report"
)
end
end
pythonpath_prefix
=
"PYTHONPATH=
#{
system
}
:
#{
system
}
/djangoapps:
#{
system
}
/lib:common/djangoapps:common/lib"
sh
(
"
#{
pythonpath_prefix
}
pylint --rcfile=.pylintrc -f parseable
#{
apps
.
join
(
' '
)
}
| tee
#{
report_dir
}
/pylint.report"
)
end
end
task
:pylint
=>
"pylint_
#{
system
}
"
task
:pylint
=>
"pylint_
#{
system
}
"
...
...
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