From 6102a08c6dd36958d0919f2aead215c27c34cace Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sat, 16 Nov 2024 02:57:08 -0500 Subject: [PATCH] Enable the W504 binary operator rule in flake8 (#2825) --- .flake8 | 2 +- .github/workflows/flake8.yaml | 2 +- archinstall/tui/help.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.flake8 b/.flake8 index 9dacc173..b4e641a4 100644 --- a/.flake8 +++ b/.flake8 @@ -1,7 +1,7 @@ [flake8] count = True # Several of the following could be autofixed or improved by running the code through psf/black -ignore = E128,E722,W191,W503,W504 +ignore = E128,E722,W191,W503 max-complexity = 40 max-line-length = 220 show-source = True diff --git a/.github/workflows/flake8.yaml b/.github/workflows/flake8.yaml index e4a08b5e..039553d9 100644 --- a/.github/workflows/flake8.yaml +++ b/.github/workflows/flake8.yaml @@ -1,5 +1,5 @@ on: [ push, pull_request ] -name: flake8 linting (5 ignores) +name: flake8 linting (4 ignores) jobs: flake8: runs-on: ubuntu-latest diff --git a/archinstall/tui/help.py b/archinstall/tui/help.py index 04bab2fe..22984fa8 100644 --- a/archinstall/tui/help.py +++ b/archinstall/tui/help.py @@ -83,8 +83,8 @@ class Help: for entry in help.group_entries: help_output += ( - entry.description.ljust(max_desc_width, ' ') + - ', '.join(entry.keys) + '\n' + entry.description.ljust(max_desc_width, ' ') + + ', '.join(entry.keys) + '\n' ) help_output += '\n'