From: Daniele Varrazzo Date: Wed, 29 Jan 2025 12:48:10 +0000 (+0100) Subject: style: adjust docstring after black 25.1.0 upgrade X-Git-Tag: 3.2.5~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f419c12483c7e4e8c2089ae9ac60930dd592afa9;p=thirdparty%2Fpsycopg.git style: adjust docstring after black 25.1.0 upgrade --- diff --git a/docs/lib/sql_role.py b/docs/lib/sql_role.py index e87d6f5be..8ba9bbe7e 100644 --- a/docs/lib/sql_role.py +++ b/docs/lib/sql_role.py @@ -1,12 +1,12 @@ # mypy: ignore-errors """ - sql role - ~~~~~~~~ +sql role +~~~~~~~~ - An interpreted text role to style SQL syntax in Psycopg documentation. +An interpreted text role to style SQL syntax in Psycopg documentation. - :copyright: Copyright 2010 by Daniele Varrazzo. - :copyright: Copyright 2020 The Psycopg Team. +:copyright: Copyright 2010 by Daniele Varrazzo. +:copyright: Copyright 2020 The Psycopg Team. """ from docutils import nodes, utils diff --git a/docs/lib/ticket_role.py b/docs/lib/ticket_role.py index 24ec873d8..3f8a81204 100644 --- a/docs/lib/ticket_role.py +++ b/docs/lib/ticket_role.py @@ -1,12 +1,12 @@ # type: ignore """ - ticket role - ~~~~~~~~~~~ +ticket role +~~~~~~~~~~~ - An interpreted text role to link docs to tickets issues. +An interpreted text role to link docs to tickets issues. - :copyright: Copyright 2013 by Daniele Varrazzo. - :copyright: Copyright 2021 The Psycopg Team +:copyright: Copyright 2013 by Daniele Varrazzo. +:copyright: Copyright 2021 The Psycopg Team """ import re diff --git a/tests/scripts/copytest.py b/tests/scripts/copytest.py index bee8a34fc..dae4b9cfc 100755 --- a/tests/scripts/copytest.py +++ b/tests/scripts/copytest.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -"""Copy operation micro-benchmarks. -""" +"""Copy operation micro-benchmarks.""" from __future__ import annotations import sys diff --git a/tools/bump_version.py b/tools/bump_version.py index 3e14b8d7d..d1f030fe3 100755 --- a/tools/bump_version.py +++ b/tools/bump_version.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -"""Bump the version number of the project. -""" +"""Bump the version number of the project.""" from __future__ import annotations diff --git a/tools/update_backer.py b/tools/update_backer.py index 35cfc48fe..045f55971 100755 --- a/tools/update_backer.py +++ b/tools/update_backer.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 # mypy: ignore-errors -"""Add or edit github users in the backers file -""" +"""Add or edit github users in the backers file""" import sys import logging diff --git a/tools/update_error_prefixes.py b/tools/update_error_prefixes.py index af63ae240..52ba2cb35 100755 --- a/tools/update_error_prefixes.py +++ b/tools/update_error_prefixes.py @@ -1,6 +1,5 @@ #!/usr/bin/env python -"""Find the error prefixes in various l10n used for precise prefixstripping. -""" +"""Find the error prefixes in various l10n used for precise prefixstripping.""" import re import logging