diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e414a0d..2e229c5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,6 +31,11 @@ repos: rev: v1.20.1 hooks: - id: setup-cfg-fmt +- repo: https://github.com/myint/docformatter + rev: v1.3.1 + hooks: + - id: docformatter + args: [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank] - repo: https://github.com/psf/black rev: 22.3.0 hooks: diff --git a/src/pytask_parallel/execute.py b/src/pytask_parallel/execute.py index d20f899..2421f9f 100644 --- a/src/pytask_parallel/execute.py +++ b/src/pytask_parallel/execute.py @@ -179,8 +179,8 @@ def _unserialize_and_execute_task( ) -> tuple[type[BaseException], BaseException, str] | None: """Unserialize and execute task. - This function receives bytes and unpickles them to a task which is them execute - in a spawned process or thread. + This function receives bytes and unpickles them to a task which is them execute in a + spawned process or thread. """ __tracebackhide__ = True