#28163: Make the default settings.py pass pep8
------------------------------------------------+------------------------
Reporter: Yoni Lavi | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Uncategorized | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
For most Django projects I see, everything passes pep8 checks except for
migrations and the default settings.py file. Migrations aren't really
source code, so I don't care about that, but it should be easy to make
settings.py conform to all the rules.
From what I checked, by changing the AUTH_PASSWORD_VALIDATORS to fit in
under 80 cols, the entire default file should now pass validation, so I
suggest the following comprehension for the validators (Pull Request -
https://github.com/django/django/pull/8452):
{{{#!python
AUTH_PASSWORD_VALIDATORS = [
{'NAME': 'django.contrib.auth.password_validation.%s' % validator}
for validator in [
'UserAttributeSimilarityValidator',
'MinimumLengthValidator',
'CommonPasswordValidator',
'NumericPasswordValidator',
]
]
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28163>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.807f7cc6ac129d4cd1074c72846965b0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.