Skip to content

Code Quality Fixes(3) #1518

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 10 commits into from
Sep 16, 2019
Merged

Code Quality Fixes(3) #1518

merged 10 commits into from
Sep 16, 2019

Conversation

lakshyacis
Copy link
Contributor

@lakshyacis lakshyacis commented Sep 10, 2019

CODE QUALITY FIXES
socks4a pylint fixes,
socks5 flake8 fixes,
stats flake8 fixes,
stats pylint fixes,
tls flake8 fixes,
tls pylint fixes,
udp pylint fixes,
networkthread pylint fixes,
node pylint fixes,
proxy pylint fixes.

@lakshyacis lakshyacis changed the title socks4a pylint fixes Code Quality Fixes Sep 10, 2019
@g1itch
Copy link
Collaborator

g1itch commented Sep 10, 2019

What a problem with flake8 in network.socks5?

$ flake8 -v src/network/socks5.py
flake8.plugins.manager    MainProcess     86 INFO     Loading entry-points for "flake8.extension".
flake8.plugins.manager    MainProcess    111 INFO     Loading entry-points for "flake8.listen".
flake8.plugins.manager    MainProcess    111 INFO     Loading entry-points for "flake8.report".
flake8.plugins.manager    MainProcess    112 INFO     Loading plugin "C90" from entry-point.
flake8.plugins.manager    MainProcess    117 INFO     Loading plugin "pycodestyle.comparison_type" from entry-point.
flake8.plugins.manager    MainProcess    124 INFO     Loading plugin "pycodestyle.missing_whitespace_after_import_keyword" from entry-point.
flake8.plugins.manager    MainProcess    124 INFO     Loading plugin "pycodestyle.imports_on_separate_lines" from entry-point.
flake8.plugins.manager    MainProcess    124 INFO     Loading plugin "pycodestyle.continued_indentation" from entry-point.
flake8.plugins.manager    MainProcess    125 INFO     Loading plugin "pycodestyle.maximum_line_length" from entry-point.
flake8.plugins.manager    MainProcess    125 INFO     Loading plugin "pycodestyle.bare_except" from entry-point.
flake8.plugins.manager    MainProcess    125 INFO     Loading plugin "pycodestyle.ambiguous_identifier" from entry-point.
flake8.plugins.manager    MainProcess    125 INFO     Loading plugin "pycodestyle.python_3000_not_equal" from entry-point.
flake8.plugins.manager    MainProcess    125 INFO     Loading plugin "pycodestyle.trailing_whitespace" from entry-point.
flake8.plugins.manager    MainProcess    125 INFO     Loading plugin "F" from entry-point.
flake8.plugins.manager    MainProcess    136 INFO     Loading plugin "pycodestyle.whitespace_around_operator" from entry-point.
flake8.plugins.manager    MainProcess    136 INFO     Loading plugin "pycodestyle.python_3000_raise_comma" from entry-point.
flake8.plugins.manager    MainProcess    136 INFO     Loading plugin "pycodestyle.comparison_negative" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.python_3000_has_key" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.blank_lines" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.python_3000_backticks" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.indentation" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.tabs_or_spaces" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.module_imports_on_top_of_file" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.missing_whitespace" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.whitespace_around_named_parameter_equals" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.explicit_line_join" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.whitespace_around_comma" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.whitespace_before_parameters" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.missing_whitespace_around_operator" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.compound_statements" from entry-point.
flake8.plugins.manager    MainProcess    137 INFO     Loading plugin "pycodestyle.trailing_blank_lines" from entry-point.
flake8.plugins.manager    MainProcess    138 INFO     Loading plugin "pycodestyle.extraneous_whitespace" from entry-point.
flake8.plugins.manager    MainProcess    138 INFO     Loading plugin "pycodestyle.whitespace_around_keywords" from entry-point.
flake8.plugins.manager    MainProcess    138 INFO     Loading plugin "pycodestyle.tabs_obsolete" from entry-point.
flake8.plugins.manager    MainProcess    138 INFO     Loading plugin "pycodestyle.break_around_binary_operator" from entry-point.
flake8.plugins.manager    MainProcess    138 INFO     Loading plugin "pycodestyle.whitespace_before_comment" from entry-point.
flake8.plugins.manager    MainProcess    138 INFO     Loading plugin "pycodestyle.comparison_to_singleton" from entry-point.
flake8.plugins.manager    MainProcess    138 INFO     Loading plugin "default" from entry-point.
flake8.plugins.manager    MainProcess    139 INFO     Loading plugin "quiet-filename" from entry-point.
flake8.plugins.manager    MainProcess    139 INFO     Loading plugin "pylint" from entry-point.
flake8.plugins.manager    MainProcess    139 INFO     Loading plugin "quiet-nothing" from entry-point.
flake8.checker            MainProcess    153 INFO     Making checkers
flake8.checker            MainProcess    159 INFO     Checking 1 files
flake8.main.application   MainProcess    351 INFO     Finished running
flake8.main.application   MainProcess    352 INFO     Reporting errors
flake8.main.application   MainProcess    353 INFO     Found a total of 0 violations and reported 0

Found a total of 0 violations and reported 0

@lakshyacis
Copy link
Contributor Author

W504 line break after binary operator

@g1itch
Copy link
Collaborator

g1itch commented Sep 10, 2019

Hate it 8( At first it warned about line break before binary operator (some versions keep warning). And now it turns out that the right way is to break before: https://bugs.python.org/issue26763

PyCQA/pycodestyle#498

@lakshyacis
Copy link
Contributor Author

Okay, will try to ignore that warning from next time.

@lakshyacis lakshyacis force-pushed the codefix1 branch 2 times, most recently from b6e8d50 to 369bec4 Compare September 13, 2019 09:15
@PeterSurda PeterSurda merged commit a961a4a into Bitmessage:v0.6 Sep 16, 2019
@g1itch g1itch mentioned this pull request Sep 23, 2019
@lakshyacis lakshyacis changed the title Code Quality Fixes Code Quality Fixes(3) Oct 10, 2019
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