Skip to content

Prospector #42

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 9 commits into from
Aug 18, 2017
Merged

Prospector #42

merged 9 commits into from
Aug 18, 2017

Conversation

jeamland
Copy link
Collaborator

Switch from flake8 to prospector for linting.

@codecov-io
Copy link

codecov-io commented Aug 18, 2017

Codecov Report

Merging #42 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #42   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           7      7           
  Lines         870    875    +5     
  Branches      184    184           
=====================================
+ Hits          870    875    +5
Impacted Files Coverage Δ
wsproto/extensions.py 100% <100%> (ø) ⬆️
wsproto/frame_protocol.py 100% <100%> (ø) ⬆️
wsproto/connection.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f982a59...5167a90. Read the comment docs.

@@ -393,6 +393,34 @@ def _process_connection_request(self, event):

return ConnectionRequested(proposed_subprotocols, event)

def extension_accept(self, extensions_header):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be public API?
It doesn't really do anything with the connection, and it is only called via accept.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you suggesting it should be renamed to _extension_accept or that it should go back into the function I pulled it out of?

I'm fine with the former.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_extension_accept to mark it as private function.

@Kriechi
Copy link
Member

Kriechi commented Aug 18, 2017

General 👍 on the code changes and fixing dormant bugs (I'm looking at you default [] parameter!)

I'm neutral about prospector vs. flake8.
My 2 cents: All projects under the python-hyper umbrella should have a somewhat similar strategy for testing + linting + travis matrix etc.

@jeamland jeamland merged commit e8f38dc into python-hyper:master Aug 18, 2017
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.

3 participants