Skip to content
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

test: fix pep8 complaint #5922

Closed
wants to merge 1 commit into from
Closed

test: fix pep8 complaint #5922

wants to merge 1 commit into from

Conversation

ikerexxe
Copy link
Contributor

Fix pep8 complaint about over-indentation in test_multidomain.py file. I
guess this is only happening in RHEL8 and Debian because the tool was
forked to pycodestyle, only it is being updated and pycodestyle isn't
available for those distributions from the package manager.

Fix pep8 complaint about over-indentation in test_multidomain.py file. I
guess this is only happening in RHEL8 and Debian because the tool was
forked to pycodestyle, only it is being updated and pycodestyle isn't
available for those distributions from the package manager.

Signed-off-by: Iker Pedrosa <[email protected]>
@ikerexxe ikerexxe changed the title [WIP] test: fix pep8 complaint test: fix pep8 complaint Dec 16, 2021
@ikerexxe
Copy link
Contributor Author

@sidecontrol can you review this PR? It solves our current problems with the python code style tool and I don't know if you already solved them.

@ikerexxe
Copy link
Contributor Author

@sidecontrol can you set the accepted label?

@alexey-tikhonov
Copy link
Member

ACK for the patch.

But why newer pycodestyle doesn't complain about this?

@alexey-tikhonov alexey-tikhonov added the Ready to push Ready to push label Dec 16, 2021
@ikerexxe
Copy link
Contributor Author

But why newer pycodestyle doesn't complain about this?

I think it's because the tool was modified after its name was changed. I've found PyCQA/pycodestyle#912 that changes the implementation of the visual indentation checks. This change only applies for tags 2.X, which belong to pycodestyle (tags 1.X are for pep8). But I'm not completely sure about what it does apart from specifying some special treatment for assert, raise and with keywords.

@alexey-tikhonov
Copy link
Member

Pushed PR: #5922

  • master
    • 46843d0 - test: fix pep8 complaint

@ikerexxe ikerexxe deleted the pep8_error branch December 20, 2021 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants