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
5de4b4ef
Commit
5de4b4ef
authored
Jul 03, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor rake tasks for pylint/pep8
Split components with : instead of _
parent
8dd32b2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
rakelib/quality.rake
+19
-20
No files found.
rakelib/quality.rake
View file @
5de4b4ef
...
@@ -20,26 +20,26 @@ end
...
@@ -20,26 +20,26 @@ end
report_dir
=
report_dir_path
(
system
)
report_dir
=
report_dir_path
(
system
)
directory
report_dir
directory
report_dir
desc
"Run pep8 on all
#{
system
}
code"
namespace
:pylint
do
task
"pep8_
#{
system
}
"
=>
[
report_dir
,
:install_python_prereqs
]
do
namespace
system
do
sh
(
"pep8
#{
system
}
| tee
#{
report_dir
}
/pep8.report"
)
desc
"Run pylint checking for
#{
system
}
checking for errors only, and aborting if there are any"
end
task
:errors
do
task
:pep8
=>
"pep8_
#{
system
}
"
run_pylint
(
system
,
report_dir
,
'-E'
)
end
end
desc
"Run pylint on all
#{
system
}
code"
desc
"Run pylint on all
#{
system
}
code"
task
"pylint_
#{
system
}
"
=>
[
report_dir
,
:install_python_prereqs
]
do
task
system
do
run_pylint
(
system
,
report_dir
)
run_pylint
(
system
,
report_dir
)
end
namespace
"pylint_
#{
system
}
"
do
desc
"Run pylint checking for errors only, and aborting if there are any"
task
:errors
do
run_pylint
(
system
,
report_dir
,
'-E'
)
end
end
end
end
namespace
:pylint
do
task
:pylint
=>
:"pylint:
#{
system
}
"
task
:errors
=>
"pylint_
#{
system
}
:errors"
end
task
:pylint
=>
"pylint_
#{
system
}
"
end
namespace
:pep8
do
\ No newline at end of file
desc
"Run pep8 on all
#{
system
}
code"
task
system
=>
[
report_dir
,
:install_python_prereqs
]
do
sh
(
"pep8
#{
system
}
| tee
#{
report_dir
}
/pep8.report"
)
end
end
task
:pep8
=>
:"pep8:
#{
system
}
"
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