diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 66cabdb73..1daa84ba4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: name: isort (python) args: ["--profile", "black", "--line-length", "79"] - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 26.10.1 hooks: - id: black args: [--line-length=79] diff --git a/.readthedocs.yml b/.readthedocs.yml index 203ce8e59..e4a5a5ab3 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -9,4 +9,3 @@ build: conda: environment: environment.yml - diff --git a/doc/source/scripts/gen_standard_selections.py b/doc/source/scripts/gen_standard_selections.py index c54b0c7f4..7050b73ce 100755 --- a/doc/source/scripts/gen_standard_selections.py +++ b/doc/source/scripts/gen_standard_selections.py @@ -8,6 +8,7 @@ - nucleobase atoms - nucleic sugar atoms """ + from typing import Any from base import TableWriter diff --git a/doc/source/scripts/gen_topologyparser_attrs.py b/doc/source/scripts/gen_topologyparser_attrs.py index 323101776..59377edc2 100755 --- a/doc/source/scripts/gen_topologyparser_attrs.py +++ b/doc/source/scripts/gen_topologyparser_attrs.py @@ -7,6 +7,7 @@ This script imports the testsuite, which tests these. """ + from collections import defaultdict from typing import Any diff --git a/doc/source/scripts/gen_unit_tables.py b/doc/source/scripts/gen_unit_tables.py index 8fffdf7c6..9cd1e9da2 100755 --- a/doc/source/scripts/gen_unit_tables.py +++ b/doc/source/scripts/gen_unit_tables.py @@ -2,6 +2,7 @@ """ Writes unit tables """ + import pathlib import sys import textwrap diff --git a/maintainer/update_json_stubs_sitemap.py b/maintainer/update_json_stubs_sitemap.py index b38549d3c..55c8efea3 100644 --- a/maintainer/update_json_stubs_sitemap.py +++ b/maintainer/update_json_stubs_sitemap.py @@ -55,15 +55,13 @@ def write_redirect(file, version="", outfile=None): if outfile is None: outfile = file url = os.path.join(URL, version, file) - REDIRECT = textwrap.dedent( - f""" + REDIRECT = textwrap.dedent(f"""