diff --git a/projects/activitypub_relay/src/python/relay/misc.py b/projects/activitypub_relay/src/python/relay/misc.py index febaa51..5868ed1 100644 --- a/projects/activitypub_relay/src/python/relay/misc.py +++ b/projects/activitypub_relay/src/python/relay/misc.py @@ -4,9 +4,9 @@ import json from json.decoder import JSONDecodeError import logging import socket -from typing import Union from urllib.parse import urlparse import uuid +from typing import Union from Crypto.Hash import SHA, SHA256, SHA512 from Crypto.PublicKey import RSA @@ -16,8 +16,10 @@ from aiohttp.client_exceptions import ( ClientConnectorError, ClientResponseError, ) +from aiohttp.hdrs import METH_ALL as METHODS from aiohttp.web import ( Response as AiohttpResponse, + View as AiohttpView, ) from async_lru import alru_cache from relay.http_debug import http_debug @@ -328,7 +330,7 @@ class DotDict(dict): def jsonify(self): def _xform(v): - if hasattr(v, "jsonify"): + if hasattr(v, 'jsonify'): return v.jsonify() else: return v diff --git a/projects/async_cache/src/python/async_cache/ttl.py b/projects/async_cache/src/python/async_cache/ttl.py index 9b9de1d..c37c2e5 100644 --- a/projects/async_cache/src/python/async_cache/ttl.py +++ b/projects/async_cache/src/python/async_cache/ttl.py @@ -1,5 +1,5 @@ +from typing import Union, Optional import datetime -from typing import Optional, Union from .key import KEY from .lru import LRU diff --git a/projects/proquint/setup.py b/projects/proquint/setup.py index 4febf53..6cb93db 100644 --- a/projects/proquint/setup.py +++ b/projects/proquint/setup.py @@ -1,8 +1,6 @@ from os import path - from setuptools import setup - here = path.abspath(path.dirname(__file__)) with open(path.join(here, "README.md"), encoding="utf-8") as f: @@ -30,7 +28,7 @@ setup( "proquint", ], entry_points = { - "console_scripts": ["proquint=proquint.__main__:main"], + 'console_scripts': ['proquint=proquint.__main__:main'], }, package_dir={"": "src/python"}, python_requires=">=3.9", diff --git a/projects/public_dns/src/python/updater/__main__.py b/projects/public_dns/src/python/updater/__main__.py index 02f1637..f3109e4 100644 --- a/projects/public_dns/src/python/updater/__main__.py +++ b/projects/public_dns/src/python/updater/__main__.py @@ -8,9 +8,10 @@ from pprint import pprint from gandi.client import GandiAPI import meraki -from updater import * import yaml +from updater import * + parser = argparse.ArgumentParser( description='"Dynamic" DNS updating for self-hosted services' diff --git a/projects/public_dns/test/python/test_parsing.py b/projects/public_dns/test/python/test_parsing.py index cda9d21..68cc790 100644 --- a/projects/public_dns/test/python/test_parsing.py +++ b/projects/public_dns/test/python/test_parsing.py @@ -2,10 +2,9 @@ import re -from updater import ( - diff_zones, - RECORD_LINE_PATTERN, -) +import pytest + +from updater import RECORD_LINE_PATTERN, parse_zone_record, diff_zones def test_record_pattern(): diff --git a/projects/smith/src/python/smith/__main__.py b/projects/smith/src/python/smith/__main__.py index 5d84988..d5b61e9 100644 --- a/projects/smith/src/python/smith/__main__.py +++ b/projects/smith/src/python/smith/__main__.py @@ -16,11 +16,13 @@ def inventory(): @inventory.command("config") def inventory_config(): """Show the configured inventory plugins.""" + pass @inventory.command("show") def inventory_show(): """Evaluate host inventory data & display that configuration.""" + pass @cli.group("config") diff --git a/projects/tentacles/src/python/tentacles/templates/approval_email.html.j2 b/projects/tentacles/src/python/tentacles/templates/approval_email.html.j2 index 9ba90d2..b3f7979 100644 --- a/projects/tentacles/src/python/tentacles/templates/approval_email.html.j2 +++ b/projects/tentacles/src/python/tentacles/templates/approval_email.html.j2 @@ -21,7 +21,7 @@ Hello {{ username }}, </p> <p> - Your account on Tentacles has been approved! You may now <a href="{{ base_url }}user/login">log in</a> and start printing! + Your account on Tentacles has been approved! You may now <a href="{{ base_url }}login">log in</a> and start printing! </p> </div> </div>