]> Nutra Git (v1) - gamesguru/getmyancestors.git/commitdiff
flake8 working
authorShane <30691680+gamesguru@users.noreply.github.com>
Tue, 9 Sep 2025 16:48:57 +0000 (12:48 -0400)
committerShane <30691680+gamesguru@users.noreply.github.com>
Tue, 9 Sep 2025 16:48:57 +0000 (12:48 -0400)
Makefile
getmyancestors/classes/session.py
getmyancestors/getmyancestors.py
setup.cfg

index 79cadbea11414bba3cf68380e6208b5c287cbdc7..643def2a360aa2bf4076169e8af4bad62e1dbfdf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ LINT_LOCS ?= getmyancestors/
 
 .PHONY: lint
 lint:
-       -flake8 $(LINT_LOCS)
+       flake8 $(LINT_LOCS)
        black $(LINT_LOCS)
        isort $(LINT_LOCS)
        pylint $(LINT_LOCS)
index 122f08773594a73b870988b74f8cd161594a79da..28302516c293dbbf76ef4d5701418f08b23f3307 100644 (file)
@@ -80,7 +80,7 @@ class Session(requests.Session):
                 )
                 res.raise_for_status()
 
-                url = f"https://ident.familysearch.org/cis-web/oauth2/v3/authorization"
+                url = "https://ident.familysearch.org/cis-web/oauth2/v3/authorization"
                 params = {
                     "response_type": "code",
                     "scope": "profile email qualifies_for_affiliate_account country",
@@ -93,7 +93,7 @@ class Session(requests.Session):
                 response.raise_for_status()
                 try:
                     code = parse_qs(urlparse(response.url).query).get("code")[0]
-                except Exception as e:
+                except Exception:
                     webbrowser.open(response.url)
                     print(
                         "Please log in to the web page that just opened and try again."
index 08487669a24a615f417e4b30e78876d07a0b90b5..6b535fb541a9f8fde7e9cb00081234894fab20a0 100644 (file)
@@ -8,7 +8,6 @@ import getpass
 import re
 import sys
 import time
-from urllib.parse import unquote
 
 # local imports
 from getmyancestors.classes.session import Session
index a57ff573772f5a27a7151dcbe60adb14c6267c2c..d5a420a0fb61126ef0b50d0b988a2dc4430fc955 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -27,16 +27,21 @@ exclude_lines =
 
 
 [pycodestyle]
-max-line-length = 88
+max-line-length = 100
 
 
 
 [flake8]
 per-file-ignores =
     # Allow unused imports in __init__.py files
-    ; __init__.py:F401,
-
-max-line-length = 88
+    getmyancestors/__init__.py:F401,
+    # Ignore E203 whitespace before ':' for thehse files
+    getmyancestors/classes/gedcom.py:E203
+    getmyancestors/classes/tree.py:E203
+    # Allow long lines in the translation file
+    getmyancestors/classes/translation.py:E501
+
+max-line-length = 100
 
 ignore =
     # line break before binary operator