)
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",
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."
[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