I'm a maintainer of black (https://github.com/psf/black), a python code
formatter. I know Django does not use black, but we selected to add it to
our CI to test formatting a decent amount of files (~1900) that have
formatting changes to try and find bugs when we make changes.
You have some test files and docs generation files that we'd like to
exclude. The test files have syntax errors on purpose it seems. The config
should effect nothing the Django project cares about.
I've done the PR and it's here:
https://github.com/django/django/pull/14488
(sorry if this is spammy and a waste of a ticket, but it was suggested I
do so on the PR)
--
Ticket URL: <https://code.djangoproject.com/ticket/32818>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Chris Jerdonek):
I'm not for or against the idea, but out of curiosity, why wouldn't it be
easier for you to keep the file in your own repo? That way you wouldn't
need to file a PR anytime you wanted to make changes to the file. Is it
because the file could potentially be different in multiple versions of
Django, and you wouldn't want to have to store multiple versions of the
file?
--
Ticket URL: <https://code.djangoproject.com/ticket/32818#comment:1>
* status: new => closed
* resolution: => invalid
Comment:
I really don't understand why this needs to be added to Django. You should
be able to add a black configurations to your CI.
--
Ticket URL: <https://code.djangoproject.com/ticket/32818#comment:2>