diff --git a/django/contrib/admin/static/admin/css/ie.css b/django/contrib/admin/static/admin/css/ie.css
index fd00f7f204..8199005877 100644
--- a/django/contrib/admin/static/admin/css/ie.css
+++ b/django/contrib/admin/static/admin/css/ie.css
@@ -60,4 +60,4 @@
.change-list ul.toplinks li {
zoom: 1;
*display: inline;
-}
\ No newline at end of file
+}
diff --git a/django/contrib/admin/static/admin/css/rtl.css b/django/contrib/admin/static/admin/css/rtl.css
index ba9f1b5ad7..e39c697a8a 100644
--- a/django/contrib/admin/static/admin/css/rtl.css
+++ b/django/contrib/admin/static/admin/css/rtl.css
@@ -247,4 +247,4 @@ div.colM {
.submit-row input {
float: left;
-}
\ No newline at end of file
+}
diff --git a/django/contrib/auth/tests/templates/registration/logged_out.html b/django/contrib/auth/tests/templates/registration/logged_out.html
index d69065375c..0a06d9554a 100644
--- a/django/contrib/auth/tests/templates/registration/logged_out.html
+++ b/django/contrib/auth/tests/templates/registration/logged_out.html
@@ -1 +1 @@
-Logged out
\ No newline at end of file
+Logged out
diff --git a/django/contrib/auth/tests/templates/registration/login.html b/django/contrib/auth/tests/templates/registration/login.html
index 027da717d9..5dd03cba72 100644
--- a/django/contrib/auth/tests/templates/registration/login.html
+++ b/django/contrib/auth/tests/templates/registration/login.html
@@ -1 +1 @@
-{{ form.as_ul }}
\ No newline at end of file
+{{ form.as_ul }}
diff --git a/django/contrib/auth/tests/templates/registration/password_change_form.html b/django/contrib/auth/tests/templates/registration/password_change_form.html
index d960111992..f9a859ae9f 100644
--- a/django/contrib/auth/tests/templates/registration/password_change_form.html
+++ b/django/contrib/auth/tests/templates/registration/password_change_form.html
@@ -1 +1 @@
-{{ form }}
\ No newline at end of file
+{{ form }}
diff --git a/django/contrib/auth/tests/templates/registration/password_reset_complete.html b/django/contrib/auth/tests/templates/registration/password_reset_complete.html
index 3dd79d86a4..b6569b29d4 100644
--- a/django/contrib/auth/tests/templates/registration/password_reset_complete.html
+++ b/django/contrib/auth/tests/templates/registration/password_reset_complete.html
@@ -1 +1 @@
-Password reset successfully
\ No newline at end of file
+Password reset successfully
diff --git a/django/contrib/auth/tests/templates/registration/password_reset_done.html b/django/contrib/auth/tests/templates/registration/password_reset_done.html
index c3d1d0c7b0..3a764cadf1 100644
--- a/django/contrib/auth/tests/templates/registration/password_reset_done.html
+++ b/django/contrib/auth/tests/templates/registration/password_reset_done.html
@@ -1 +1 @@
-Email sent
\ No newline at end of file
+Email sent
diff --git a/django/contrib/auth/tests/templates/registration/password_reset_form.html b/django/contrib/auth/tests/templates/registration/password_reset_form.html
index d960111992..f9a859ae9f 100644
--- a/django/contrib/auth/tests/templates/registration/password_reset_form.html
+++ b/django/contrib/auth/tests/templates/registration/password_reset_form.html
@@ -1 +1 @@
-{{ form }}
\ No newline at end of file
+{{ form }}
diff --git a/django/contrib/flatpages/tests/templates/404.html b/django/contrib/flatpages/tests/templates/404.html
index 5fd5f3cf3b..cbfff0cf2f 100644
--- a/django/contrib/flatpages/tests/templates/404.html
+++ b/django/contrib/flatpages/tests/templates/404.html
@@ -1 +1 @@
-
Oh Noes!
\ No newline at end of file
+Oh Noes!
diff --git a/django/contrib/formtools/tests/templates/base.html b/django/contrib/formtools/tests/templates/base.html
index c6afe66197..4275f80503 100644
--- a/django/contrib/formtools/tests/templates/base.html
+++ b/django/contrib/formtools/tests/templates/base.html
@@ -1,2 +1,2 @@
{% block content %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/django/contrib/gis/templates/gis/admin/osm.html b/django/contrib/gis/templates/gis/admin/osm.html
index b74b41fee8..63c32702ec 100644
--- a/django/contrib/gis/templates/gis/admin/osm.html
+++ b/django/contrib/gis/templates/gis/admin/osm.html
@@ -1,2 +1,2 @@
{% extends "gis/admin/openlayers.html" %}
-{% block openlayers %}{% include "gis/admin/osm.js" %}{% endblock %}
\ No newline at end of file
+{% block openlayers %}{% include "gis/admin/osm.js" %}{% endblock %}
diff --git a/django/contrib/gis/templates/gis/google/google-multi.js b/django/contrib/gis/templates/gis/google/google-multi.js
index e3c7e8f02b..cfcd3ac5d0 100644
--- a/django/contrib/gis/templates/gis/google/google-multi.js
+++ b/django/contrib/gis/templates/gis/google/google-multi.js
@@ -5,4 +5,4 @@
{% for dom_id in dom_ids %}{{ js_module }}.{{ dom_id }}_load();
{% endfor %}
}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/django/contrib/gis/templates/gis/google/google-single.js b/django/contrib/gis/templates/gis/google/google-single.js
index b930e4594f..801ef1256b 100644
--- a/django/contrib/gis/templates/gis/google/google-single.js
+++ b/django/contrib/gis/templates/gis/google/google-single.js
@@ -1,2 +1,2 @@
{% extends "gis/google/google-map.js" %}
-{% block vars %}{# No vars here because used within GoogleMapSet #}{% endblock %}
\ No newline at end of file
+{% block vars %}{# No vars here because used within GoogleMapSet #}{% endblock %}
diff --git a/docs/_theme/djangodocs/genindex.html b/docs/_theme/djangodocs/genindex.html
index 486994ae91..032b70df8f 100644
--- a/docs/_theme/djangodocs/genindex.html
+++ b/docs/_theme/djangodocs/genindex.html
@@ -1,4 +1,4 @@
{% extends "basic/genindex.html" %}
{% block bodyclass %}{% endblock %}
-{% block sidebarwrapper %}{% endblock %}
\ No newline at end of file
+{% block sidebarwrapper %}{% endblock %}
diff --git a/docs/_theme/djangodocs/layout.html b/docs/_theme/djangodocs/layout.html
index 833742b94b..f90030852c 100644
--- a/docs/_theme/djangodocs/layout.html
+++ b/docs/_theme/djangodocs/layout.html
@@ -125,4 +125,4 @@
{% block relbar2 %}{% endblock %}
{% block sidebar1 %}{% endblock %}
{% block sidebar2 %}{% endblock %}
-{% block footer %}{% endblock %}
\ No newline at end of file
+{% block footer %}{% endblock %}
diff --git a/docs/_theme/djangodocs/modindex.html b/docs/_theme/djangodocs/modindex.html
index 59a5cb31bd..ca5a2d460c 100644
--- a/docs/_theme/djangodocs/modindex.html
+++ b/docs/_theme/djangodocs/modindex.html
@@ -1,3 +1,3 @@
{% extends "basic/modindex.html" %}
{% block bodyclass %}{% endblock %}
-{% block sidebarwrapper %}{% endblock %}
\ No newline at end of file
+{% block sidebarwrapper %}{% endblock %}
diff --git a/docs/_theme/djangodocs/search.html b/docs/_theme/djangodocs/search.html
index 943478ce75..4fdc7f6a84 100644
--- a/docs/_theme/djangodocs/search.html
+++ b/docs/_theme/djangodocs/search.html
@@ -1,3 +1,3 @@
{% extends "basic/search.html" %}
{% block bodyclass %}{% endblock %}
-{% block sidebarwrapper %}{% endblock %}
\ No newline at end of file
+{% block sidebarwrapper %}{% endblock %}
diff --git a/docs/_theme/djangodocs/static/default.css b/docs/_theme/djangodocs/static/default.css
index 9dc69ee785..8f1e38f9e7 100644
--- a/docs/_theme/djangodocs/static/default.css
+++ b/docs/_theme/djangodocs/static/default.css
@@ -1,3 +1,3 @@
@import url(reset-fonts-grids.css);
@import url(djangodocs.css);
-@import url(homepage.css);
\ No newline at end of file
+@import url(homepage.css);
diff --git a/docs/_theme/djangodocs/static/homepage.css b/docs/_theme/djangodocs/static/homepage.css
index 276c5470ab..3f69f01b2e 100644
--- a/docs/_theme/djangodocs/static/homepage.css
+++ b/docs/_theme/djangodocs/static/homepage.css
@@ -19,4 +19,4 @@
#index #s-solving-specific-problems,
#index #s-reference,
#index #s-and-all-the-rest
- { clear: left; }
\ No newline at end of file
+ { clear: left; }
diff --git a/tests/generic_views/templates/generic_views/apple_detail.html b/tests/generic_views/templates/generic_views/apple_detail.html
index 4fd0bd933b..f9fa413c6b 100644
--- a/tests/generic_views/templates/generic_views/apple_detail.html
+++ b/tests/generic_views/templates/generic_views/apple_detail.html
@@ -1 +1 @@
-This is a {% if tasty %}tasty {% endif %}{{ apple.color }} apple{{ extra }}
\ No newline at end of file
+This is a {% if tasty %}tasty {% endif %}{{ apple.color }} apple{{ extra }}
diff --git a/tests/generic_views/templates/generic_views/artist_detail.html b/tests/generic_views/templates/generic_views/artist_detail.html
index 9ea13fed83..b235552a2c 100644
--- a/tests/generic_views/templates/generic_views/artist_detail.html
+++ b/tests/generic_views/templates/generic_views/artist_detail.html
@@ -1 +1 @@
-This is an {{ artist }}.
\ No newline at end of file
+This is an {{ artist }}.
diff --git a/tests/generic_views/templates/generic_views/artist_form.html b/tests/generic_views/templates/generic_views/artist_form.html
index 114e9bc5cc..ee00eac659 100644
--- a/tests/generic_views/templates/generic_views/artist_form.html
+++ b/tests/generic_views/templates/generic_views/artist_form.html
@@ -1 +1 @@
-A form: {{ form }}
\ No newline at end of file
+A form: {{ form }}
diff --git a/tests/generic_views/templates/generic_views/author_confirm_delete.html b/tests/generic_views/templates/generic_views/author_confirm_delete.html
index d6ed99846e..a7e0828b02 100644
--- a/tests/generic_views/templates/generic_views/author_confirm_delete.html
+++ b/tests/generic_views/templates/generic_views/author_confirm_delete.html
@@ -1 +1 @@
-Are you sure?
\ No newline at end of file
+Are you sure?
diff --git a/tests/generic_views/templates/generic_views/author_detail.html b/tests/generic_views/templates/generic_views/author_detail.html
index b6a60fd492..e35e752b89 100644
--- a/tests/generic_views/templates/generic_views/author_detail.html
+++ b/tests/generic_views/templates/generic_views/author_detail.html
@@ -1 +1 @@
-This is an {{ author }}.
\ No newline at end of file
+This is an {{ author }}.
diff --git a/tests/generic_views/templates/generic_views/author_form.html b/tests/generic_views/templates/generic_views/author_form.html
index 114e9bc5cc..ee00eac659 100644
--- a/tests/generic_views/templates/generic_views/author_form.html
+++ b/tests/generic_views/templates/generic_views/author_form.html
@@ -1 +1 @@
-A form: {{ form }}
\ No newline at end of file
+A form: {{ form }}
diff --git a/tests/generic_views/templates/generic_views/author_list.html b/tests/generic_views/templates/generic_views/author_list.html
index 42ba331802..30cebf8bfd 100644
--- a/tests/generic_views/templates/generic_views/author_list.html
+++ b/tests/generic_views/templates/generic_views/author_list.html
@@ -1,3 +1,3 @@
{% for item in object_list %}
{{ item }}
-{% endfor %}
\ No newline at end of file
+{% endfor %}
diff --git a/tests/generic_views/templates/generic_views/author_objects.html b/tests/generic_views/templates/generic_views/author_objects.html
index 42ba331802..30cebf8bfd 100644
--- a/tests/generic_views/templates/generic_views/author_objects.html
+++ b/tests/generic_views/templates/generic_views/author_objects.html
@@ -1,3 +1,3 @@
{% for item in object_list %}
{{ item }}
-{% endfor %}
\ No newline at end of file
+{% endfor %}
diff --git a/tests/generic_views/templates/generic_views/author_view.html b/tests/generic_views/templates/generic_views/author_view.html
index dcd9d6b3a6..bc8052355b 100644
--- a/tests/generic_views/templates/generic_views/author_view.html
+++ b/tests/generic_views/templates/generic_views/author_view.html
@@ -1 +1 @@
-This is an alternate template_name_suffix for an {{ author }}.
\ No newline at end of file
+This is an alternate template_name_suffix for an {{ author }}.
diff --git a/tests/generic_views/templates/generic_views/book_archive_day.html b/tests/generic_views/templates/generic_views/book_archive_day.html
index 4a7b5027b5..600b3229a3 100644
--- a/tests/generic_views/templates/generic_views/book_archive_day.html
+++ b/tests/generic_views/templates/generic_views/book_archive_day.html
@@ -1 +1 @@
-Archive for {{ day }}. Previous day is {{ previous_day }}
\ No newline at end of file
+Archive for {{ day }}. Previous day is {{ previous_day }}
diff --git a/tests/generic_views/templates/generic_views/book_archive_month.html b/tests/generic_views/templates/generic_views/book_archive_month.html
index 4e1e52b35c..1b2f4260d1 100644
--- a/tests/generic_views/templates/generic_views/book_archive_month.html
+++ b/tests/generic_views/templates/generic_views/book_archive_month.html
@@ -1 +1 @@
-Books in {{ month }}.
\ No newline at end of file
+Books in {{ month }}.
diff --git a/tests/generic_views/templates/generic_views/book_archive_week.html b/tests/generic_views/templates/generic_views/book_archive_week.html
index 0ddcbc98a9..05e13f2637 100644
--- a/tests/generic_views/templates/generic_views/book_archive_week.html
+++ b/tests/generic_views/templates/generic_views/book_archive_week.html
@@ -1 +1 @@
-Archive for {{ week }}.
\ No newline at end of file
+Archive for {{ week }}.
diff --git a/tests/generic_views/templates/generic_views/book_detail.html b/tests/generic_views/templates/generic_views/book_detail.html
index c40af70426..a6b7bd2a6d 100644
--- a/tests/generic_views/templates/generic_views/book_detail.html
+++ b/tests/generic_views/templates/generic_views/book_detail.html
@@ -1 +1 @@
-This is {{ book }}.
\ No newline at end of file
+This is {{ book }}.
diff --git a/tests/generic_views/templates/generic_views/book_list.html b/tests/generic_views/templates/generic_views/book_list.html
index 42ba331802..30cebf8bfd 100644
--- a/tests/generic_views/templates/generic_views/book_list.html
+++ b/tests/generic_views/templates/generic_views/book_list.html
@@ -1,3 +1,3 @@
{% for item in object_list %}
{{ item }}
-{% endfor %}
\ No newline at end of file
+{% endfor %}
diff --git a/tests/generic_views/templates/generic_views/confirm_delete.html b/tests/generic_views/templates/generic_views/confirm_delete.html
index 87288c4495..1eabf9180c 100644
--- a/tests/generic_views/templates/generic_views/confirm_delete.html
+++ b/tests/generic_views/templates/generic_views/confirm_delete.html
@@ -1 +1 @@
-Generic: Are you sure?
\ No newline at end of file
+Generic: Are you sure?
diff --git a/tests/generic_views/templates/generic_views/detail.html b/tests/generic_views/templates/generic_views/detail.html
index 1b6b9d946b..8f95ce5a6a 100644
--- a/tests/generic_views/templates/generic_views/detail.html
+++ b/tests/generic_views/templates/generic_views/detail.html
@@ -1 +1 @@
-Look, an {{ object }}.
\ No newline at end of file
+Look, an {{ object }}.
diff --git a/tests/generic_views/templates/generic_views/form.html b/tests/generic_views/templates/generic_views/form.html
index 7249998643..b89d46c867 100644
--- a/tests/generic_views/templates/generic_views/form.html
+++ b/tests/generic_views/templates/generic_views/form.html
@@ -1 +1 @@
-A generic form: {{ form }}
\ No newline at end of file
+A generic form: {{ form }}
diff --git a/tests/generic_views/templates/generic_views/list.html b/tests/generic_views/templates/generic_views/list.html
index 42ba331802..30cebf8bfd 100644
--- a/tests/generic_views/templates/generic_views/list.html
+++ b/tests/generic_views/templates/generic_views/list.html
@@ -1,3 +1,3 @@
{% for item in object_list %}
{{ item }}
-{% endfor %}
\ No newline at end of file
+{% endfor %}
diff --git a/tests/generic_views/templates/generic_views/page_template.html b/tests/generic_views/templates/generic_views/page_template.html
index 88e20c8b50..ac34ef6a42 100644
--- a/tests/generic_views/templates/generic_views/page_template.html
+++ b/tests/generic_views/templates/generic_views/page_template.html
@@ -1 +1 @@
-This is some content: {{ content }}
\ No newline at end of file
+This is some content: {{ content }}
diff --git a/tests/generic_views/templates/registration/login.html b/tests/generic_views/templates/registration/login.html
index cac78221e2..f9cabce312 100644
--- a/tests/generic_views/templates/registration/login.html
+++ b/tests/generic_views/templates/registration/login.html
@@ -1 +1 @@
-An empty login template.
\ No newline at end of file
+An empty login template.
diff --git a/tests/staticfiles_tests/project/documents/cached/absolute.css b/tests/staticfiles_tests/project/documents/cached/absolute.css
index 54467a362d..03f2ae791a 100644
--- a/tests/staticfiles_tests/project/documents/cached/absolute.css
+++ b/tests/staticfiles_tests/project/documents/cached/absolute.css
@@ -1,4 +1,4 @@
@import url("/static/cached/styles.css");
body {
background: #d3d6d8 url(/static/cached/img/relative.png);
-}
\ No newline at end of file
+}
diff --git a/tests/staticfiles_tests/project/documents/cached/css/window.css b/tests/staticfiles_tests/project/documents/cached/css/window.css
index 9fea4e8a5e..770e4001e6 100644
--- a/tests/staticfiles_tests/project/documents/cached/css/window.css
+++ b/tests/staticfiles_tests/project/documents/cached/css/window.css
@@ -1,3 +1,3 @@
body {
background: #d3d6d8 url("img/window.png");
-}
\ No newline at end of file
+}
diff --git a/tests/staticfiles_tests/project/documents/cached/relative.css b/tests/staticfiles_tests/project/documents/cached/relative.css
index 95d1f4abb8..68995c4fed 100644
--- a/tests/staticfiles_tests/project/documents/cached/relative.css
+++ b/tests/staticfiles_tests/project/documents/cached/relative.css
@@ -3,4 +3,4 @@
@import url("absolute.css#eggs");
body {
background: #d3d6d8 url(img/relative.png);
-}
\ No newline at end of file
+}
diff --git a/tests/staticfiles_tests/project/documents/cached/styles.css b/tests/staticfiles_tests/project/documents/cached/styles.css
index ca28fc35cd..68896f4973 100644
--- a/tests/staticfiles_tests/project/documents/cached/styles.css
+++ b/tests/staticfiles_tests/project/documents/cached/styles.css
@@ -1 +1 @@
-@import url("other.css");
\ No newline at end of file
+@import url("other.css");
diff --git a/tests/staticfiles_tests/project/documents/cached/styles_insensitive.css b/tests/staticfiles_tests/project/documents/cached/styles_insensitive.css
index 57904ad415..3cd3d08349 100644
--- a/tests/staticfiles_tests/project/documents/cached/styles_insensitive.css
+++ b/tests/staticfiles_tests/project/documents/cached/styles_insensitive.css
@@ -1 +1 @@
-@IMporT uRL("other.css");
\ No newline at end of file
+@IMporT uRL("other.css");
diff --git a/tests/staticfiles_tests/project/documents/cached/url.css b/tests/staticfiles_tests/project/documents/cached/url.css
index 184e254004..c0974475ca 100644
--- a/tests/staticfiles_tests/project/documents/cached/url.css
+++ b/tests/staticfiles_tests/project/documents/cached/url.css
@@ -1 +1 @@
-@import url("https://www.djangoproject.com/m/css/base.css");
\ No newline at end of file
+@import url("https://www.djangoproject.com/m/css/base.css");
diff --git a/tests/syndication_tests/templates/syndication/description.html b/tests/syndication_tests/templates/syndication/description.html
index 85ec82c8df..850e85e952 100644
--- a/tests/syndication_tests/templates/syndication/description.html
+++ b/tests/syndication_tests/templates/syndication/description.html
@@ -1 +1 @@
-Description in your templates: {{ obj }}
\ No newline at end of file
+Description in your templates: {{ obj }}
diff --git a/tests/syndication_tests/templates/syndication/description_context.html b/tests/syndication_tests/templates/syndication/description_context.html
index 319d84b1b0..b8872fd637 100644
--- a/tests/syndication_tests/templates/syndication/description_context.html
+++ b/tests/syndication_tests/templates/syndication/description_context.html
@@ -1 +1 @@
-{{ obj }} (foo is {{ foo }})
\ No newline at end of file
+{{ obj }} (foo is {{ foo }})
diff --git a/tests/syndication_tests/templates/syndication/title.html b/tests/syndication_tests/templates/syndication/title.html
index eb17969714..57744ec49c 100644
--- a/tests/syndication_tests/templates/syndication/title.html
+++ b/tests/syndication_tests/templates/syndication/title.html
@@ -1 +1 @@
-Title in your templates: {{ obj }}
\ No newline at end of file
+Title in your templates: {{ obj }}
diff --git a/tests/syndication_tests/templates/syndication/title_context.html b/tests/syndication_tests/templates/syndication/title_context.html
index 319d84b1b0..b8872fd637 100644
--- a/tests/syndication_tests/templates/syndication/title_context.html
+++ b/tests/syndication_tests/templates/syndication/title_context.html
@@ -1 +1 @@
-{{ obj }} (foo is {{ foo }})
\ No newline at end of file
+{{ obj }} (foo is {{ foo }})
diff --git a/tests/template_tests/templates/test_context.html b/tests/template_tests/templates/test_context.html
index a100f03de6..6c206bf550 100644
--- a/tests/template_tests/templates/test_context.html
+++ b/tests/template_tests/templates/test_context.html
@@ -1 +1 @@
-obj:{{ obj }}
\ No newline at end of file
+obj:{{ obj }}
diff --git a/tests/template_tests/templates/test_include_error.html b/tests/template_tests/templates/test_include_error.html
index 6db959380e..aa41f44de2 100644
--- a/tests/template_tests/templates/test_include_error.html
+++ b/tests/template_tests/templates/test_include_error.html
@@ -1 +1 @@
-{% include "missing.html" %}
\ No newline at end of file
+{% include "missing.html" %}
diff --git a/tests/templates/base.html b/tests/templates/base.html
index 611bc094a9..c401502dd9 100644
--- a/tests/templates/base.html
+++ b/tests/templates/base.html
@@ -5,4 +5,4 @@
{% block content %}
{% endblock %}