-
Notifications
You must be signed in to change notification settings - Fork 126
Add indent and autopep8 infrastructure #2
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
Conversation
76b7aa1
to
e002422
Compare
Thanks. |
Ah, Fedora has |
Codecov Report
@@ Coverage Diff @@
## master #2 +/- ##
==========================================
- Coverage 69.51% 65.08% -4.43%
==========================================
Files 49 47 -2
Lines 4740 5136 +396
Branches 820 988 +168
==========================================
+ Hits 3295 3343 +48
- Misses 1088 1432 +344
- Partials 357 361 +4
Continue to review full report at Codecov.
|
5f184cd
to
5a5d98f
Compare
Let's worry about this after 3.0. |
I think it would be good to land this change before releasing 3.0.0. A new major release is the best time to do large project wide changes. IIUC, this will modify the code but should not have any side effects. Having more idiomatic Python code as well as avoiding inadvertent whitespace changes will help make new contributions easier. |
3.0.0 is mainly about merging contributors from pyldap, which, being a fork that was meant to be merged back to python-ldap, avoided reformatting the code. |
Makes sense. Thanks for the response. |
Makefile contains targets to run indent and autopep8.
Hi, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
please rebase the PR on master.
.indent.pro
file is based on CPython'sMisc/indent.pro
file. It should get us very close to PEP 7 compatible C code.E121 - Fix indentation to be a multiple of four.
. See https://pypi.python.org/pypi/autopep8#features