Skip to content

Prepare auto-formatting with black #364

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 1 commit into from
Jul 13, 2020
Merged

Conversation

tiran
Copy link
Member

@tiran tiran commented Jun 29, 2020

Also removes autopep8 and prepares configuration for import sorter
isort.

Signed-off-by: Christian Heimes cheimes@redhat.com

Also removes autopep8 and prepares configuration for import sorter
isort.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
@@ -0,0 +1,8 @@
[tool.black]
line-length = 88
Copy link
Member

Choose a reason for hiding this comment

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

If this needs to be specified, why not stick to PEP 8?

Copy link
Member Author

Choose a reason for hiding this comment

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

88 is the default line length for black. I'm mentioning 88 here to make the line length setting explicit.

@encukou
Copy link
Member

encukou commented Jun 29, 2020

Overall, I must say I don't agree with the choices Black enforces. I won't enjoy reviewing these changes.

I would like to step down as the main maintainer of python-ldap before this goes in.

@droideck
Copy link
Contributor

droideck commented Jul 8, 2020

Personally, I like the black choices. It is closer to prettier and I get used to it.
It is PEP8 compliant plus it has increased readability.
You have my ack.

Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

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

ACKed, so I'm merging it.

@encukou encukou merged commit 2e34d75 into python-ldap:master Jul 13, 2020
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