Skip to content

Commit 60754a4

Browse files
committed
fix
1 parent 458474a commit 60754a4

8 files changed

Lines changed: 12 additions & 11 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ repos:
6060
mdformat-pyproject>=0.0.2,
6161
]
6262
files: (docs/.)
63-
exclude: (docs/source/reference_guides/hookspecs\.md|docs/source/reference_guides/api/.*\.md|docs/source/how_to_guides/capture_warnings\.md|docs/source/how_to_guides/hashing_inputs_of_tasks\.md|docs/source/how_to_guides/provisional_nodes_and_task_generators\.md|docs/source/how_to_guides/remote_files\.md|docs/source/how_to_guides/writing_custom_nodes\.md|docs/source/tutorials/defining_dependencies_products\.md|docs/source/tutorials/using_a_data_catalog\.md)
63+
exclude: (docs/source/reference_guides/hookspecs\.md|docs/source/reference_guides/api/.*\.md|docs/source/how_to_guides/capture_warnings\.md|docs/source/how_to_guides/hashing_inputs_of_tasks\.md|docs/source/how_to_guides/provisional_nodes_and_task_generators\.md|docs/source/how_to_guides/remote_files\.md|docs/source/how_to_guides/writing_custom_nodes\.md|docs/source/tutorials/defining_dependencies_products\.md|docs/source/tutorials/using_a_data_catalog\.md|docs/source/tutorials/write_a_task\.md|docs/source/tutorials/visualizing_the_dag.md)
6464
- repo: https://github.com/kynan/nbstripout
6565
rev: 0.9.1
6666
hooks:

docs/source/how_to_guides/hashing_inputs_of_tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Hashing inputs of tasks
22

33
Any input to a task function is parsed by pytask's nodes. For example,
4-
[pathlib.Path][]s are parsed by
4+
[`pathlib.Path`][]s are parsed by
55
[`pytask.PathNode`](../reference_guides/api/nodes_and_tasks.md#pytask.PathNode)s. The
66
[`pytask.PathNode`](../reference_guides/api/nodes_and_tasks.md#pytask.PathNode) handles among other things
77
how changes in the underlying file are detected.

docs/source/how_to_guides/provisional_nodes_and_task_generators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ the directory of the task module) and a glob pattern (default is `*`).
3636

3737
When we use the [`pytask.DirectoryNode`](../reference_guides/api/nodes_and_tasks.md#pytask.DirectoryNode)
3838
as a product annotation, we get access to the `root_dir` as a
39-
[pathlib.Path][] object inside the function, which allows us to store
39+
[`pathlib.Path`][] object inside the function, which allows us to store
4040
the files.
4141

4242
!!! note

docs/source/how_to_guides/writing_custom_nodes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
In the previous tutorials and how-to guides, you learned that dependencies and products
44
can be represented as plain Python objects with
55
[`pytask.PythonNode`](../reference_guides/api/nodes_and_tasks.md#pytask.PythonNode) or as paths where every
6-
[pathlib.Path][] is converted to a
6+
[`pathlib.Path`][] is converted to a
77
[`pytask.PathNode`](../reference_guides/api/nodes_and_tasks.md#pytask.PathNode).
88

99
In this how-to guide, you will learn about the general concept of nodes and how to write
@@ -114,7 +114,7 @@ Here are some explanations.
114114

115115
## Improvements
116116

117-
Usually, you would like your custom node to work with [pathlib.Path][] objects and
117+
Usually, you would like your custom node to work with [`pathlib.Path`][] objects and
118118
[upath.UPath][] objects allowing to work with remote
119119
filesystems. To simplify getting the state of the node, you can use the
120120
[`pytask.get_state_of_path`](../reference_guides/api/utilities_and_typing.md#pytask.get_state_of_path)

docs/source/tutorials/using_a_data_catalog.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Next, we look at the module `task_data_preparation.py` and its task
5656
be stored on the disk.
5757

5858
In the previous tutorial, we learned to use
59-
[pathlib.Path][]s to define
59+
[`pathlib.Path`][]s to define
6060
products of our tasks. Here we see again the signature of the task function.
6161

6262
=== "Annotated"
@@ -175,12 +175,12 @@ path means the location is relative to the module of the data catalog.
175175
```
176176

177177
You can now use the data catalog as in the previous example and use the
178-
[pathlib.Path][] in the task.
178+
[`pathlib.Path`][] in the task.
179179

180180
!!! note
181181

182182
Note that the value of `data_catalog["csv"]` inside the task becomes a
183-
[pathlib.Path][]. It is because a [pathlib.Path][] in
183+
[`pathlib.Path`][]. It is because a [`pathlib.Path`][] in
184184
[`pytask.DataCatalog.add`](../reference_guides/api/core_classes_and_exceptions.md#pytask.DataCatalog.add)
185185
is not parsed to a [`pytask.PickleNode`](../reference_guides/api/nodes_and_tasks.md#pytask.PickleNode)
186186
but a [`pytask.PathNode`](../reference_guides/api/nodes_and_tasks.md#pytask.PathNode).

docs/source/tutorials/visualizing_the_dag.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ Similar to
5353
[`pytask.build`](../reference_guides/api/functional_interfaces.md#pytask.build), there
5454
exists
5555
[`pytask.build_dag`](../reference_guides/api/functional_interfaces.md#pytask.build_dag)
56-
which returns the DAG as a [networkx.DiGraph][].
56+
which returns the DAG as a [`networkx.DiGraph`][].
5757

5858
Create an executable script that you can execute with `python script.py`.
5959

6060
```py
6161
--8<-- "docs_src/tutorials/visualizing_the_dag.py"
6262
```
6363

64-
Customization works best on the [networkx.DiGraph][]. For example, here, we set the
64+
Customization works best on the [`networkx.DiGraph`][]. For example, here, we set the
6565
shape of all nodes to hexagons by adding the property to the node attributes.
6666

6767
For drawing, you better switch to pygraphviz since the matplotlib backend handles shapes

docs/source/tutorials/write_a_task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ necessary for pytask to correctly run a workflow. The interfaces are ordered fro
4848

4949
The type hint `Annotated[Path, Product]` uses
5050
[`typing.Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated)
51-
syntax. The first entry specifies the argument type ([pathlib.Path][]), and the second
51+
syntax. The first entry specifies the argument type ([`pathlib.Path`][]), and the second
5252
entry
5353
([`pytask.Product`](../reference_guides/api/utilities_and_typing.md#pytask.Product))
5454
marks this argument as a product.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ site_description: pytask is a workflow management system that facilitates reprod
77
use_directory_urls: false
88
validation:
99
unresolved_footnotes: false
10+
# https://github.com/zensical/zensical/issues/600
1011
unresolved_references: false
1112
docs_dir: docs/source
1213
site_dir: docs/build

0 commit comments

Comments
 (0)