#34085: Black shouldn't format non-Python files
-------------------------------------+-------------------------------------
Reporter: Jeff Triplett | Owner: nobody
Type: Bug | Status: new
Component: Core (Management | Version: 4.1
commands) |
Severity: Normal | Resolution:
Keywords: startproject black | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Oliver Andrich):
Replying to [comment:8 Jeff Triplett]:
> If we pass a filename to Black to format the file then it will try to
format the file which seems to be the existing behavior. Unless we filter
out only known python extensions, I think your folder patch is the better
default behavior. Otherwise, Django is going to break a bunch of
requirements files for other projects and have other strange behavior for
file style that are just python enough that they can be reformatted.
I think it is essential to skip the none-python files. I started to built
my own starter based on Jeff's. I prefer poetry for that, and as the
requirements.in is broken, my pyproject.toml is broken after using my
unreleased template too.
--
Ticket URL: <https://code.djangoproject.com/ticket/34085#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070183d5ee4f73-0cadce17-5cf4-4d68-bfaa-ab87d504cd6a-000000%40eu-central-1.amazonses.com.