Skip to content

Commit 55cbec9

Browse files
[pre-commit.ci] pre-commit autoupdate (#635)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tobias Raabe <raabe@posteo.de>
1 parent b569819 commit 55cbec9

File tree

8 files changed

+20
-21
lines changed

8 files changed

+20
-21
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
hooks:
3030
- id: sort-all
3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: v0.5.2
32+
rev: v0.5.7
3333
hooks:
3434
- id: ruff-format
3535
- id: ruff
@@ -62,11 +62,10 @@ repos:
6262
hooks:
6363
- id: nbstripout
6464
exclude: (docs)
65-
- repo: https://github.com/codespell-project/codespell
66-
rev: v2.3.0
65+
- repo: https://github.com/crate-ci/typos
66+
rev: v1.23.6
6767
hooks:
68-
- id: codespell
69-
additional_dependencies: [tomli]
68+
- id: typos
7069
exclude: (\.ipynb)
7170
- repo: meta
7271
hooks:

_typos.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[default.extend-words]
2+
ines = "ines"
3+
thes = "thes" # profiling-tasks.md

docs/source/conf.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,12 @@
8282
}
8383

8484
intersphinx_mapping = {
85-
"click": ("https://click.palletsprojects.com/en/8.0.x/", None),
86-
"deepdiff": ("https://zepworks.com/deepdiff/current/", None),
85+
"click": ("https://click.palletsprojects.com/en/8.0.x", None),
86+
"deepdiff": ("https://zepworks.com/deepdiff/current", None),
8787
"networkx": ("https://networkx.org/documentation/stable", None),
88-
"nx": ("https://networkx.org/documentation/stable", None),
8988
"pandas": ("https://pandas.pydata.org/docs", None),
90-
"pd": ("https://pandas.pydata.org/docs", None),
9189
"pluggy": ("https://pluggy.readthedocs.io/en/latest", None),
92-
"pygraphviz": ("https://pygraphviz.github.io/documentation/stable/", None),
90+
"pygraphviz": ("https://pygraphviz.github.io/documentation/stable", None),
9391
"python": ("https://docs.python.org/3.10", None),
9492
}
9593

docs/source/how_to_guides/bp_structure_of_task_files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ The body of the task function should contain two things:
8181
The rest of the module is made of {term}`private functions <private function>` with a
8282
leading underscore which are used to accomplish this and only this task.
8383

84-
Here is an example of a task module which conforms to all advices.
84+
Here is an example of a task module which conforms to all advice.
8585

8686
```{literalinclude} ../../../docs_src/how_to_guides/bp_structure_of_task_files.py
8787
```
8888

8989
```{seealso}
90-
The structure of the task module is greatly inspired by John Ousterhout's "A Philosopy
90+
The structure of the task module is greatly inspired by John Ousterhout's "A Philosophy
9191
of Software Design" in which he coins the name "deep modules". In short, deep modules
9292
have simple interfaces which are defined by one or a few {term}`public functions <public
9393
function>` (or classes) which provide the functionality. The complexity is hidden inside

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ disable_error_code = ["import-not-found"]
205205
module = ["_pytask.hookspecs"]
206206
disable_error_code = ["empty-body"]
207207

208-
[tool.codespell]
209-
skip = "*.js,*/termynal.css"
210-
211208
[tool.refurb]
212209
python_version = "3.8"
213210

src/_pytask/capture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def start(self) -> None:
491491
def done(self) -> None:
492492
"""Stop capturing.
493493
494-
Stop capturing, restore streams, return original capture file, seeked to
494+
Stop capturing, restore streams, return original capture file, sought to
495495
position zero.
496496
497497
"""

src/_pytask/clean.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def _find_all_unknown_paths(
236236
return list(
237237
itertools.chain.from_iterable(
238238
[
239-
_find_all_unkown_paths_per_recursive_node(node, include_directories)
239+
_find_all_unknown_paths_per_recursive_node(node, include_directories)
240240
for node in recursive_nodes
241241
]
242242
)
@@ -305,7 +305,7 @@ def __repr__(self) -> str:
305305
return f"<Node at {self.path} is {'unknown' if self.is_unknown else 'known'}>"
306306

307307

308-
def _find_all_unkown_paths_per_recursive_node(
308+
def _find_all_unknown_paths_per_recursive_node(
309309
node: _RecursivePathNode, include_directories: bool
310310
) -> Generator[Path, None, None]:
311311
"""Return unknown paths per recursive file node.
@@ -318,4 +318,6 @@ def _find_all_unkown_paths_per_recursive_node(
318318
yield node.path
319319
else:
320320
for n in node.sub_nodes:
321-
yield from _find_all_unkown_paths_per_recursive_node(n, include_directories)
321+
yield from _find_all_unknown_paths_per_recursive_node(
322+
n, include_directories
323+
)

tests/test_skipping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def test_pytask_execute_task_setup(marker_name, force, expectation):
261261

262262

263263
@pytest.mark.end_to_end()
264-
def test_skip_has_precendence_over_ancestor_failed(runner, tmp_path):
264+
def test_skip_has_precedence_over_ancestor_failed(runner, tmp_path):
265265
source = """
266266
from pathlib import Path
267267
@@ -278,7 +278,7 @@ def task_example_2(path=Path("file.txt")): ...
278278

279279

280280
@pytest.mark.end_to_end()
281-
def test_skipif_has_precendence_over_ancestor_failed(runner, tmp_path):
281+
def test_skipif_has_precedence_over_ancestor_failed(runner, tmp_path):
282282
source = """
283283
from pathlib import Path
284284
import pytask

0 commit comments

Comments
 (0)