about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-05-22 15:31:04 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-05-25 19:01:16 +0900
commit552c60f5fd0395acabfd8320a5372c54df23a5ea (patch)
treef6119d4fd69ba4fa64077dd5fe0d685e8fedd6c8
parentbea8aadae758eff048fb9042023bf8902f45281e (diff)
downloadscadere-552c60f5fd0395acabfd8320a5372c54df23a5ea.tar.gz
Lint
-rw-r--r--pyproject.toml42
-rw-r--r--src/scadere/listen.py5
2 files changed, 24 insertions, 23 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 4a78d86..91b3428 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,25 +1,25 @@
 [build-system]
-requires = [ "flit_core >=3.2,<4" ]
-build-backend = "flit_core.buildapi"
+requires = [ 'flit_core >=3.2,<4' ]
+build-backend = 'flit_core.buildapi'
 
 [project]
-name = "scadere"
-description = "TLS certificate renewal reminder"
-readme = "README.md"
-requires-python = ">=3.11"
-license = { file = "COPYING" }
-authors = [ { name = "Nguyễn Gia Phong", email = "cnx@loang.net" } ]
-maintainers = [ { name = "Nguyễn Gia Phong", email = "chung@loa.loang.net" } ]
-keywords = [ "atom", "tls", "ca" ]
+name = 'scadere'
+description = 'TLS certificate renewal reminder'
+readme = 'README.md'
+requires-python = '>=3.9'
+license = { file = 'COPYING' }
+authors = [ { name = 'Nguyễn Gia Phong', email = 'cnx@loang.net' } ]
+maintainers = [ { name = 'Nguyễn Gia Phong', email = 'chung@loa.loang.net' } ]
+keywords = [ 'atom', 'tls', 'ca' ]
 classifiers = [
-    "Development Status :: 4 - Beta",
-    "Environment :: Console",
-    "Environment :: Web Environment",
-    "Framework :: AsyncIO",
-    "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
-    "Operating System :: OS Independent",
-    "Programming Language :: Python",
-    "Topic :: Utilities" ]
-dynamic = [ "version" ]
-urls = { Source = "https://trong.loang.net/scadere" }
-scripts = { scadere = "scadere.__main__:main" }
+    'Development Status :: 4 - Beta',
+    'Environment :: Console',
+    'Environment :: Web Environment',
+    'Framework :: AsyncIO',
+    'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
+    'Operating System :: OS Independent',
+    'Programming Language :: Python',
+    'Topic :: Utilities' ]
+dynamic = [ 'version' ]
+urls = { Source = 'https://trong.loang.net/scadere' }
+scripts = { scadere = 'scadere.__main__:main' }
diff --git a/src/scadere/listen.py b/src/scadere/listen.py
index bac32c8..aebd409 100644
--- a/src/scadere/listen.py
+++ b/src/scadere/listen.py
@@ -106,8 +106,9 @@ async def handle(certs, base_url, reader, writer):
                     ('link', {'rel': 'self', 'href': base_url}),
                     ('title', certs.name),
                     ('updated', datetime.now().isoformat()),
-                    ('generator', {'uri': 'https://trong.loang.net/scadere/about',
-                                   'version': __version__},
+                    ('generator',
+                     {'uri': 'https://trong.loang.net/scadere/about',
+                      'version': __version__},
                      'Scadere'),
                     *(entry(base_url, cert)
                       for cert in summaries if cert[2].endswith(domains))))