diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f89a0363..69e41ee4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,11 +25,11 @@ repos: - id: python-no-log-warn - id: text-unicode-replacement-char - repo: https://github.com/aio-libs/sort-all - rev: v1.2.0 + rev: v1.3.0 hooks: - id: sort-all - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.1 + rev: v0.7.3 hooks: - id: ruff-format - id: ruff @@ -58,12 +58,12 @@ repos: ] files: (docs/.) - repo: https://github.com/kynan/nbstripout - rev: 0.7.1 + rev: 0.8.0 hooks: - id: nbstripout exclude: (docs) - repo: https://github.com/crate-ci/typos - rev: v1.26.8 + rev: typos-dict-v0.11.35 hooks: - id: typos exclude: (\.ipynb) diff --git a/docs/source/how_to_guides/provisional_nodes_and_task_generators.md b/docs/source/how_to_guides/provisional_nodes_and_task_generators.md index d5530eee..3bef27f3 100644 --- a/docs/source/how_to_guides/provisional_nodes_and_task_generators.md +++ b/docs/source/how_to_guides/provisional_nodes_and_task_generators.md @@ -89,6 +89,6 @@ content to a `.txt` file. ``` ```{important} -The generated tasks need to be decoratored with {func}`@task ` to be +The generated tasks need to be decorated with {func}`@task ` to be collected. ``` diff --git a/docs/source/how_to_guides/writing_custom_nodes.md b/docs/source/how_to_guides/writing_custom_nodes.md index 813f3d96..2204c0c9 100644 --- a/docs/source/how_to_guides/writing_custom_nodes.md +++ b/docs/source/how_to_guides/writing_custom_nodes.md @@ -142,9 +142,9 @@ databases. [^kedro] ## References -[^structural-subtyping]: Structural subtyping is similar to ABCs an approach in Python to enforce interfaces, but - it can be considered more pythonic since it is closer to duck typing. Hynek Schlawack - wrote a comprehensive +[^structural-subtyping]: Structural subtyping is similar to ABCs an approach in Python to enforce interfaces, + but it can be considered more pythonic since it is closer to duck typing. Hynek + Schlawack wrote a comprehensive [guide on subclassing](https://hynek.me/articles/python-subclassing-redux/) that features protocols under "Type 2". Glyph wrote an introduction to protocols called [I want a new duck](https://glyph.twistedmatrix.com/2020/07/new-duck.html). diff --git a/src/_pytask/debugging.py b/src/_pytask/debugging.py index 16aa120a..bec231a3 100644 --- a/src/_pytask/debugging.py +++ b/src/_pytask/debugging.py @@ -150,7 +150,7 @@ def _import_pdb_cls( __import__(modname) mod = sys.modules[modname] - # Handle --pdbcls=pdb:pdb.Pdb (useful e.g. with pdbpp). + # Handle --pdbcls=pdb:pdb.Pdb (useful e.g. with pdbpp or pdbp). parts = classname.split(".") pdb_cls = getattr(mod, parts[0]) for part in parts[1:]: diff --git a/src/_pytask/live.py b/src/_pytask/live.py index d05bf5d4..577d08b1 100644 --- a/src/_pytask/live.py +++ b/src/_pytask/live.py @@ -114,7 +114,7 @@ def start(self) -> None: self._live.start() except LiveError: msg = ( - "pytask tried to launch a second live display which is impossible. the " + "pytask tried to launch a second live display which is impossible. The " "issue occurs when you use pytask on the command line on a task module " "that uses the programmatic interface of pytask at the same time. " "Use either the command line or the programmatic interface." diff --git a/tests/test_debugging.py b/tests/test_debugging.py index 514f0ace..31bc8848 100644 --- a/tests/test_debugging.py +++ b/tests/test_debugging.py @@ -329,8 +329,8 @@ def task_1(): @pytest.mark.skipif(not IS_PEXPECT_INSTALLED, reason="pexpect is not installed.") @pytest.mark.skipif(sys.platform == "win32", reason="pexpect cannot spawn on Windows.") def test_pdb_with_injected_do_debug(tmp_path): - """Simulates pdbpp, which injects Pdb into do_debug, and uses self.__class__ in - do_continue.""" + """Simulates pdbpp or pdbp, which injects Pdb into do_debug, and uses self.__class__ + in do_continue.""" source = """ import pdb