Skip to content

Refactor rake tasks for pylint/pep8 - #332

Merged
singingwolfboy merged 2 commits into
masterfrom
db/rake-pylint
Jul 10, 2013
Merged

singingwolfboy merged 2 commits into
masterfrom
db/rake-pylint

Conversation

@singingwolfboy

Copy link
Copy Markdown
Contributor

Split components with : instead of _

Note: this may require changing how Jenkins calls pylint and pep8.

Split components with : instead of _
@singingwolfboy

Copy link
Copy Markdown
Contributor Author

@jzoldak @wedaly Review?

@cpennington

Copy link
Copy Markdown
Contributor

Jenkins just uses scripts/test.sh, which just calls rake pep8 and rake pylint, so that should be fine.

@nedbat

nedbat commented Jul 9, 2013

Copy link
Copy Markdown
Contributor

What's the real-world benefit of splitting with ':' instead of '_' ? Also, maybe I'm just not good at reading Rakefiles, but the diff looks like it changes more than just some punctuation someplace.

@wedaly

wedaly commented Jul 9, 2013

Copy link
Copy Markdown
Contributor

I'm concerned about changes to the task dependencies. In particular, it looks like you removed the report directory dependency. Does the task still work if you delete the report directory, then try running the task?

@singingwolfboy

Copy link
Copy Markdown
Contributor Author

@nedbat The benefit is that it's more idiomatic Ruby/Rake syntax, so it's more understandable to people who are unfamiliar with the project, and we get to use built-in utilities like the namespace command.

@singingwolfboy

Copy link
Copy Markdown
Contributor Author

@wedaly Thanks for catching that. Addressed in 7bf2b1e.

@wedaly

wedaly commented Jul 10, 2013

Copy link
Copy Markdown
Contributor

👍

@jzoldak

jzoldak commented Jul 10, 2013

Copy link
Copy Markdown
Contributor

👍

singingwolfboy added a commit that referenced this pull request Jul 10, 2013
Refactor rake tasks for pylint/pep8
@singingwolfboy
singingwolfboy merged commit 3b1182b into master Jul 10, 2013
chrisrossi pushed a commit to jazkarta/edx-platform that referenced this pull request Mar 31, 2014
antoviaque referenced this pull request in open-craft/openedx-platform Dec 9, 2014
Cached_has_permissions in templates instead of pre-calculated context variables
Danyal-Faheem pushed a commit to Danyal-Faheem/edx-platform that referenced this pull request Jul 15, 2025
…ettings

Added settings for Arabic Moroccan
kiram15 pushed a commit that referenced this pull request Jul 17, 2026
This PR continues the goal reminder optimization work by pushing the two most expensive per-goal eligibility checks into the database queryset, reducing the number of goals entering the loop from ~1.97M to ~20K–50K and cutting per-goal DB queries from 6–7 down to 3–4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants