From 0e005bc10a7c763096f8814320d186cdba179857 Mon Sep 17 00:00:00 2001 From: Thomas Ledoux Date: Fri, 18 Oct 2024 17:27:46 +0200 Subject: [PATCH] fix: take care of linter warnings --- .github/workflows/python-app.yml | 2 +- dialog_utils.py | 2 +- mutf7.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index d2e6d4c..ff0b4e2 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -41,7 +41,7 @@ jobs: # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + flake8 . --count --exit-zero --max-complexity=20 --max-line-length=127 --statistics # - name: Test with pytest # run: | # pytest diff --git a/dialog_utils.py b/dialog_utils.py index 44ad443..97f457c 100644 --- a/dialog_utils.py +++ b/dialog_utils.py @@ -19,7 +19,7 @@ def prepare_fonts(root, verbose=False): if verbose: print(f"TkDefaultFont={defaultfont.actual()}") print(f"TkFixedtFont={fixedfont.actual()}") - print(f"screen_width={screen_width}") + print(f"{screen_width=}, screen_height={_screen_height}") if 1024 < screen_width <= 1440: default_size = 10 elif 1440 < screen_width <= 1920: diff --git a/mutf7.py b/mutf7.py index f88e6dc..846a3bf 100644 --- a/mutf7.py +++ b/mutf7.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ -This awesome piece of code is intented to encode and decode modified UTF-7 +This awesome piece of code is intented to encode and decode modified UTF-7 (the one that is used for IMAP folder names) See https://datatracker.ietf.org/doc/html/rfc2060.html#section-5.1.3