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

Add missing blank lines after class or function definition. #10689

Closed
wants to merge 1 commit into from
Closed

Add missing blank lines after class or function definition. #10689

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 17, 2016

Please follow the guide below

  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

What is the purpose of your pull request?

  • Bug fix
  • New extractor
  • New feature

Description of your pull request and other information

Explanation of your pull request in arbitrary form goes here. Please make sure the description explains the purpose and effect of your pull request and is worded well enough to be understood. Provide as much context and examples as possible.

@dstftw
Copy link
Collaborator

dstftw commented Sep 17, 2016

It does not fix anything. What's the point?

@ghost
Copy link
Author

ghost commented Sep 17, 2016

@dstftw pep8

@dstftw
Copy link
Collaborator

dstftw commented Sep 17, 2016

Latest flake8 has no complaints.

@yan12125
Copy link
Collaborator

It was proposed by GvR in PyCQA/pycodestyle#400 and later implemented in PyCQA/pycodestyle#536. This check is not included in the latest release of pycodestyle (2.0.0) yet. Personally I prefer to wait for pycodestyle 2.1 before applying this rule in youtube-dl, which should happen soon.

@ghost ghost closed this Oct 12, 2016
@ghost
Copy link
Author

ghost commented Nov 10, 2016

@yan12125 @dstftw It's happened. pycodestyle 2.1.0 is in flake8.

@yan12125
Copy link
Collaborator

The latest flake8 (3.0.4) was not compatible with pycodestyle 2.1.0 yet (https://gitlab.com/pycqa/flake8/issues/246). The fix is landed in flake8 git-master. Debian has applied the upstream fix, too, while Arch Linux uses a wrong patch (https://bugs.archlinux.org/task/51756). I'll fix it when Arch Linux applies the correct patch.

yan12125 pushed a commit that referenced this pull request Nov 17, 2016
In pycodestyle 2.1.0, E305 was introduced, which requires two blank
lines after top level declarations, too.

See PyCQA/pycodestyle#400

See also #10689; thanks @stepshal for first mentioning this issue and
initial patches
calbrecht referenced this pull request in calbrecht/youtube-dl Dec 26, 2016
In pycodestyle 2.1.0, E305 was introduced, which requires two blank
lines after top level declarations, too.

See PyCQA/pycodestyle#400

See also #10689; thanks @stepshal for first mentioning this issue and
initial patches
This pull request was closed.
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