PEP8/Linter changes · Issue #4626 · encode/django-rest-framework (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
There are new flake8, pep8, twine, and transifex-client libraries in PyPI. DRF should use them.
In order to use them, the serializers
module will have to no longer import *
from relations
and fields
.
- Get rid of the
import *
syntax inserializers
- Update the PyPI packages
Where we currently use[We're not doing this]serializers.Example
, we will now usefields.Example
orrelations.Example
ifExample
is a field or a relation that otherwise would have passed through theserializers
module- Create a
.flake8
file with the equivalent ofFLAKE8_ARGS = ['rest_framework', 'tests', '--ignore=E501']
and take it out ofruntests.py
See #4613 for more information