-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Proposal: py-autopep8 was unmaintained, point to repository with improvements/fixes #7999
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
This looks good to me -- let's wait a week to see if there's any activity on the thread you linked, but this should be a quick merge based on the state of things. I do notice the el file itself doesn't have any indication of its license, so some kind of license identifier would probably be good to add while bringing this package up to snuff. And thanks. :) |
Thanks for checking on this: I plan some other changes such as supporting formatting a region of text and optionally formatting depending on an autopep8 entry in |
Since the review you made this change: https://github.com/ideasman42/emacs-py-autopep8/commit/089ecfa256cd6aa2929de328af067af9d06214e0. IMO it is a mistake that you indent lisp differently from everybody else. I brought that up when you proposed your indentation package. We added it anyway so that you can indent as you wish and contributors to your packages can automatically indent as intended by the maintainer without too much pain. But when taking over someone else's package, then I think you should really stick to the default indentation rules. It's particularly important to stick to the rules in this case: How can a potential user trust a package that has the purpose to indent python as python is intended to be indented if it is implemented using lisp that is indented as if it were python? |
Not sure which package you're referring to, my auto-formatting package isn't included in melpa.
I'd agree with your perspective if developers were actively contributing to it, however this project (as far as I can tell) has been abandoned since 2016, not being updated doesn't necessarily mean "dead" - in this case it had some fairly significant flaws that went unaddressed. It's practically rewritten & while I could upload a new package - it doesn't seem useful to have two autopep8 auto-formatting packages in melpa - as it's simple enough to match the existing calls. Since I intend to update and support it, I think it's reasonable to be able to define the code-style, while it's a bit different, I don't consider it hostile to other developers and have had significant contributions from community members in the past - with the advantage I can reformat their patches even if they don't use the auto-formatter.
I don't see having fixed indentation per nesting as being especially pythonic, it's mostly to be predictable (indentation depth reflects nesting) and generally avoiding right-shift (something I've found in practically all other lisp auto-formatters that tend to indent heavily and cause a lot of line wrapping). |
I guess I remembered that wrong and I voiced my discomfort when we added a package that used your auto-formatting package.
I am okay with it then. Obviously not thrilled, but writing a new package would we a waste.
I just picked python because ... well obvious reasons. I don't use lisp (or other) auto-formatters but am quite happy with the results of doing it manually. Sometimes the nesting gets surprisingly deep but in my experience it is almost always possible to get a reasonable result while staying below 80 characters per line. One slightly ugly trick I am a little more often forced to use than I would hope, is to put the first argument right below the function (and then sometimes all the other arguments on the same line). But that is less of a Lisp problem than it is a elisp-has-no-namespaces-so-everything-gets-a-bit-long problem. But back on topic: I am okay with this and won't protest anymore. |
Thread's been quiet for over a week, I think this is good to merge. I think I also remember making a comment about the formatting choices. :) Since I'm running my workflow here anyway here are a couple lints that get picked up:
|
Thanks @riscy addressed issues and added support for formatting the selection & conditionally formatting based on the existence of an autopep8 configuration entry. |
Note, |
New maintainer: @ideasman42
Brief summary of what the package does
I'm proposing to take over maintenance of py-autopep8, as it hasn't been updated since 2016 and there are unaddressed issues which I've resolved in my repository.
I've made the following changes:
Direct link to the package repository
https://github.com/ideasman42/emacs-py-autopep8
Your association with the package
Contributor/user.
Relevant communications with the upstream package maintainer
fastmail.fm
address (from the git commit history) but it bounced.Is this repository still active ? paetzke/py-autopep8.el#28 (from 2018)
Checklist
M-x checkdoc
is happy with my docstrings