mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
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:
parent
f8e8381c00
commit
f9c67f04d4
7
.editorconfig
Normal file
7
.editorconfig
Normal 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
1
.gitignore
vendored
|
@ -13,6 +13,7 @@
|
||||||
MANIFEST
|
MANIFEST
|
||||||
coverage.*
|
coverage.*
|
||||||
|
|
||||||
|
!.editorconfig
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!.travis.yml
|
!.travis.yml
|
||||||
!.isort.cfg
|
!.isort.cfg
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.promo li a {
|
.promo li a {
|
||||||
float: left;
|
float: left;
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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. */
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
|
|
||||||
from rest_framework import compat # noqa
|
from rest_framework import compat # noqa
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from tests import importable
|
from tests import importable
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user