Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#649)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tobias Raabe <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and tobiasraabe authored Nov 16, 2024
1 parent 5804f52 commit f18df8f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ content to a `.txt` file.
```

```{important}
The generated tasks need to be decoratored with {func}`@task <pytask.task>` to be
The generated tasks need to be decorated with {func}`@task <pytask.task>` to be
collected.
```
6 changes: 3 additions & 3 deletions docs/source/how_to_guides/writing_custom_nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/debugging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:]:
Expand Down
2 changes: 1 addition & 1 deletion src/_pytask/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 2 additions & 2 deletions tests/test_debugging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f18df8f

Please sign in to comment.