Hi,
On 01/25/2016 01:28 AM, Raymond Hettinger wrote:
>
>> - At least it should follow PEP 7 ;-)
>
> Please don't do this. It misses the spirit of how the style-guides are
> intended to be used.
>
> "I personally hate with a vengeance that there are tools named after style
> guide PEPs that
> On Jan 19, 2016, at 12:59 PM, francismb wrote:
>
> Dear Core-Devs,
> what's your opinion about a code-formatter bot for cpython.
> Pros, Cons, where could be applicable (new commits, new workflow, it
> doesn't make sense), ...
>
>
> - At least it should follow PEP 7 ;-)
Hi,
from your valuable feedback, here is what I thing could be a previous
requirements list (lets call it for e.g. autopep7 script by now):
- It should follow PEP 7 :-)
- It should check PEP 7 compliance on a per file basis (for simplicity)
- It should be embeddable on the test suite, returning
Andrew Barnert via Python-Dev writes:
> […] it can be helpful to have both suggested editor plugins that do
> the auto formatting on the dev's computer, and VCS-triggered checkers
> that ensure the formatting was correct.
Right, I was not intending the different stages to
Thanks again to all persons that commented so far.
> what's your opinion about a code-formatter bot for cpython.
> Pros, Cons, where could be applicable (new commits, new workflow, it
> doesn't make sense), ...
>
>
> - At least it should follow PEP 7 ;-)
> - ...
There seems to be too much
On Jan 20, 2016, at 00:35, Ben Finney wrote:
>
> francismb writes:
>
>> what's your opinion about a code-formatter bot for cpython.
>
> What is the proposal? The opinions will surely depend on:
... plus:
* How does the formatter bot deal with
francismb writes:
> what's your opinion about a code-formatter bot for cpython.
What is the proposal? The opinions will surely depend on:
* What formatting is to be applied automatically?
* If you propose to enforce rigid interpretations of the style-guide
PEPs as
Dear Core-Devs,
what's your opinion about a code-formatter bot for cpython.
Pros, Cons, where could be applicable (new commits, new workflow, it
doesn't make sense), ...
- At least it should follow PEP 7 ;-)
- ...
Thanks in advance,
francis
___
Not a core dev, but I would definitely recommend using them.
Best,
Sven
On 19.01.2016 21:59, francismb wrote:
Dear Core-Devs,
what's your opinion about a code-formatter bot for cpython.
Pros, Cons, where could be applicable (new commits, new workflow, it
doesn't make sense), ...
- At least
On Tue, Jan 19, 2016 at 12:59 PM, francismb wrote:
> Pros, Cons, where could be applicable (new commits, new workflow, it
> doesn't make sense), ...
>
-1. formatting should be done by humans (with the help of tools) before
committing.
It should not be left to a robot to make
Indeed, automated code formatting is a good thing. But a bot is the wrong
approach. You want a code formatting checker as a potential pre-submit hook
(like we have had for white space issues in the past), but until you have
super high confidence in it you need to make sure it is not a blocker for
11 matches
Mail list logo