Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
3b1182b4
Commit
3b1182b4
authored
11 years ago
by
David Baumgold
Browse files
Options
Downloads
Plain Diff
Merge pull request #332 from edx/db/rake-pylint
Refactor rake tasks for pylint/pep8
parents
2eb89d05
7bf2b1e3
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rakelib/quality.rake
+19
-19
19 additions, 19 deletions
rakelib/quality.rake
with
19 additions
and
19 deletions
rakelib/quality.rake
+
19
−
19
View file @
3b1182b4
...
...
@@ -20,26 +20,26 @@ end
report_dir
=
report_dir_path
(
system
)
directory
report_dir
desc
"Run pep8 on all
#{
system
}
code"
task
"pep8_
#{
system
}
"
=>
[
report_dir
,
:install_python_prereqs
]
do
sh
(
"pep8
#{
system
}
| tee
#{
report_dir
}
/pep8.report"
)
end
task
:pep8
=>
"pep8_
#{
system
}
"
namespace
:pylint
do
namespace
system
do
desc
"Run pylint checking for
#{
system
}
checking for errors only, and aborting if there are any"
task
:errors
do
run_pylint
(
system
,
report_dir
,
'-E'
)
end
end
desc
"Run pylint on all
#{
system
}
code"
task
"pylint_
#{
system
}
"
=>
[
report_dir
,
:install_python_prereqs
]
do
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'
)
desc
"Run pylint on all
#{
system
}
code"
task
system
=>
[
report_dir
,
:install_python_prereqs
]
do
run_pylint
(
system
,
report_dir
)
end
end
namespace
:pylint
do
task
:errors
=>
"pylint_
#{
system
}
:errors"
end
task
:pylint
=>
"pylint_
#{
system
}
"
task
:pylint
=>
:"pylint:
#{
system
}
"
end
\ No newline at end of file
namespace
:pep8
do
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment