Clean up all whitespace throughout project (#5578)

* Remove trailing whitespace from lines
* Remove trailing nad leading whitespace from files

Allows for cleaner diffs in future changes. For editors that
automatically clean up whitespace on save, will avoid unrelated line
changes in diffs.
This commit is contained in:
Jon Dufresne 2017-11-09 11:57:53 -08:00 committed by Carlton Gibson
parent f8e8381c00
commit f9c67f04d4
22 changed files with 32 additions and 36 deletions

7
.editorconfig Normal file
View File

@ -0,0 +1,7 @@
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

1
.gitignore vendored
View File

@ -13,6 +13,7 @@
MANIFEST MANIFEST
coverage.* coverage.*
!.editorconfig
!.gitignore !.gitignore
!.travis.yml !.travis.yml
!.isort.cfg !.isort.cfg

View File

@ -7,4 +7,3 @@ file_filter = rest_framework/locale/<lang>/LC_MESSAGES/django.po
source_file = rest_framework/locale/en_US/LC_MESSAGES/django.po source_file = rest_framework/locale/en_US/LC_MESSAGES/django.po
source_lang = en_US source_lang = en_US
type = PO type = PO

View File

@ -784,4 +784,3 @@ in [OpenAPI][open-api] format.
[api-blueprint]: https://apiblueprint.org/ [api-blueprint]: https://apiblueprint.org/
[static-files]: https://docs.djangoproject.com/en/stable/howto/static-files/ [static-files]: https://docs.djangoproject.com/en/stable/howto/static-files/
[named-arguments]: https://docs.djangoproject.com/en/stable/topics/http/urls/#named-groups [named-arguments]: https://docs.djangoproject.com/en/stable/topics/http/urls/#named-groups

View File

@ -1,4 +1,3 @@
<style> <style>
.promo li a { .promo li a {
float: left; float: left;

View File

@ -318,4 +318,3 @@ def authenticate(request=None, **credentials):
return authenticate(**credentials) return authenticate(**credentials)
else: else:
return authenticate(request=request, **credentials) return authenticate(request=request, **credentials)

View File

@ -1,4 +1,3 @@
/* The navbar is fixed at >= 980px wide, so add padding to the body to prevent /* The navbar is fixed at >= 980px wide, so add padding to the body to prevent
content running up underneath it. */ content running up underneath it. */

View File

@ -69,7 +69,3 @@ at <code>rest_framework/docs/error.html</code>.</p>
<script src="{% static 'rest_framework/docs/js/jquery-1.10.2.min.js' %}"></script> <script src="{% static 'rest_framework/docs/js/jquery-1.10.2.min.js' %}"></script>
</body> </body>
</html> </html>

View File

@ -3,4 +3,3 @@
<pre class="highlight javascript hide" data-language="javascript"><code>{% code html %}<!-- Load the JavaScript client library --> <pre class="highlight javascript hide" data-language="javascript"><code>{% code html %}<!-- Load the JavaScript client library -->
<script src="{% static 'rest_framework/js/coreapi-0.1.1.js' %}"></script> <script src="{% static 'rest_framework/js/coreapi-0.1.1.js' %}"></script>
<script src="{% url 'api-docs:schema-js' %}"></script>{% endcode %}</code></pre> <script src="{% url 'api-docs:schema-js' %}"></script>{% endcode %}</code></pre>

View File

@ -1,2 +1 @@
from rest_framework import compat # noqa from rest_framework import compat # noqa

View File

@ -1,4 +1,3 @@
from django.conf import settings from django.conf import settings
from tests import importable from tests import importable