Skip to content

Fix linting problems with restapi application #2938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 9, 2017

Conversation

agjohnson
Copy link
Contributor

This cherry picks #2890 linting changes and leaves the refactoring. We can
address that as a separate piece of work, as it seems there might be some more
back and forth on that PR.

CM Lubinski and others added 6 commits June 9, 2017 08:56
This is a first step and only adds docstrings, etc. It doesn't refactor any
code.

Conflicts:
	prospector-more.yml
	readthedocs/restapi/views/model_views.py
In several cases, we can use the provided `request` rather than access `self`
(which could make these functions easier to test in isolation). In others, the
unused args could be folded into an unnamed kwarg param.
This worked as intended, but only because the overridden section variable
would later evaluate to True. Using a different variable name makes this a bit
less error-prone.
@agjohnson agjohnson added the PR: work in progress Pull request is not ready for full review label Jun 9, 2017
@agjohnson
Copy link
Contributor Author

I've already reviewed the changes from @cmc333333, so my changes are probably all that needs looking over -- that is, 57d6d49 and the following commits

@agjohnson agjohnson requested a review from ericholscher June 9, 2017 16:25
@ericholscher ericholscher merged commit 41e8c8d into master Jun 9, 2017
@ericholscher ericholscher removed the PR: work in progress Pull request is not ready for full review label Jun 9, 2017
@agjohnson agjohnson mentioned this pull request Jun 9, 2017
@agjohnson agjohnson deleted the restapi-linting-less branch June 9, 2017 16:50
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.

2 participants