From 18e44bd32c1230e52309d8f8de292e7cdb26d223 Mon Sep 17 00:00:00 2001 From: David Smith <39445562+smithdc1@users.noreply.github.com> Date: Tue, 19 Nov 2024 07:12:08 +0000 Subject: [PATCH] Pre-commit autoupdate and fix of lint errors. (#193) * Pre-commit autoupdate. * Black formatting update and fixed flake8 error. test_inline_checkboxes is a duplicate of the test on line 237. --- .pre-commit-config.yaml | 6 +++--- tests/test_layout_objects.py | 24 +++++++----------------- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a6f7f2d..a1f32ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ repos: - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 7.1.1 hooks: - id: flake8 \ No newline at end of file diff --git a/tests/test_layout_objects.py b/tests/test_layout_objects.py index 1ca8a12..6eec8de 100644 --- a/tests/test_layout_objects.py +++ b/tests/test_layout_objects.py @@ -275,7 +275,7 @@ def test_accordion_and_accordiongroup(self): assert parse_form(form) == parse_expected("accordion.html") def test_accordion_css_class_is_applied(self): - classes = 'one two three' + classes = "one two three" test_form = SampleForm() test_form.helper = FormHelper() test_form.helper.form_tag = False @@ -283,18 +283,17 @@ def test_accordion_css_class_is_applied(self): Accordion( AccordionGroup("one", "first_name"), css_class=classes, - css_id='super-accordion' + css_id="super-accordion", ) ) html = render_crispy_form(test_form) assert ( - html.count('