diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 51b264e..38beedb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,14 +2,14 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files -- repo: https://github.com/psf/black - rev: 23.11.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black diff --git a/t2kdm/maid.py b/t2kdm/maid.py index 2581af3..3e18b8c 100644 --- a/t2kdm/maid.py +++ b/t2kdm/maid.py @@ -511,8 +511,7 @@ def generate_index(self): context = {"timestamp": self.tasklog.timestamp(), "taskrows": taskrows} with open(indexfile, "wt") as f: - f.write( - """ + f.write("""
@@ -526,10 +525,7 @@ def generate_index(self): - """.format( - **context - ) - ) + """.format(**context)) def do_task(self, task): """Do a specific task and log it in the tasklog.