From a1a23080d8e1f17bb89c8c79cc3b8387c94b9f2e Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Fri, 8 Mar 2024 12:07:44 +0100 Subject: [PATCH] Run flake8 --- .flake8 | 1 + .github/workflows/code_quality.yml | 1 + tests/unit/test_admin_index.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index fb13f88..699e9b9 100644 --- a/.flake8 +++ b/.flake8 @@ -1,5 +1,6 @@ [flake8] max-line-length = 88 +ignore = E501 exclude = env .tox diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 60b8bdf..feccee3 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -23,6 +23,7 @@ jobs: toxenv: - isort - black + - flake8 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/tests/unit/test_admin_index.py b/tests/unit/test_admin_index.py index 0298cd1..fda8fc6 100644 --- a/tests/unit/test_admin_index.py +++ b/tests/unit/test_admin_index.py @@ -63,7 +63,7 @@ def test_check_admin_index_app_missing(self): self.assertEqual(len(result), 1) @override_settings(TEMPLATES=[{"OPTIONS": {"context_processors": []}}]) - def test_check_admin_index_context_process_present(self): + def test_check_admin_index_context_process_not_present(self): result = check_admin_index_context_processor([]) self.assertEqual(len(result), 0)