From cc7d4e197b7d9d11b149cfb0dd254dabccd121d7 Mon Sep 17 00:00:00 2001
From: Dragon Dave McKee <david.mckee@dxw.com>
Date: Fri, 7 Jun 2024 11:58:40 +0100
Subject: [PATCH] Lint end-of-file has newline

(We also change the way we exclude files to be more general in our linting)
---
 .pre-commit-config.yaml | 6 +++++-
 LICENSE                 | 1 -
 docs/index.rst          | 1 -
 docs/usage/mixins.rst   | 2 +-
 4 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index bb7e9a47..3f2a886e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,6 +1,10 @@
-files: ^waffle/
 repos:
 -   repo: https://github.com/pycqa/flake8
     rev: '7.0.0'
     hooks:
     -   id: flake8
+        exclude: docs/conf.py|test_settings.py
+-   repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: 'v4.6.0'
+    hooks:
+    -   id: end-of-file-fixer
diff --git a/LICENSE b/LICENSE
index 973bf529..73334a82 100644
--- a/LICENSE
+++ b/LICENSE
@@ -25,4 +25,3 @@ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
diff --git a/docs/index.rst b/docs/index.rst
index 65e69b41..8f7bf541 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -33,4 +33,3 @@ Indices and tables
 * :ref:`genindex`
 * :ref:`modindex`
 * :ref:`search`
-
diff --git a/docs/usage/mixins.rst b/docs/usage/mixins.rst
index 499e5960..9336adc8 100644
--- a/docs/usage/mixins.rst
+++ b/docs/usage/mixins.rst
@@ -39,4 +39,4 @@ WaffleSampleMixin
     from waffle.mixins import WaffleSampleMixin
 
     class MyClass(WaffleSampleMixin, View):
-        waffle_sample= "my_sample"
\ No newline at end of file
+        waffle_sample= "my_sample"