Skip to content

Commit 25788c8

Browse files
[pre-commit.ci] pre-commit autoupdate (#637)
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 49a9a27 commit 25788c8

File tree

95 files changed

+560
-478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+560
-478
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 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.7
32+
rev: v0.6.2
3333
hooks:
3434
- id: ruff-format
3535
- id: ruff
@@ -63,7 +63,7 @@ repos:
6363
- id: nbstripout
6464
exclude: (docs)
6565
- repo: https://github.com/crate-ci/typos
66-
rev: v1.23.6
66+
rev: v1.24.1
6767
hooks:
6868
- id: typos
6969
exclude: (\.ipynb)

docs/source/how_to_guides/interfaces_for_dependencies_products.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ a task. When we talk about products later, the same interfaces will be used.
1818

1919
| | `def task(arg: ... = ...)` | `Annotated[..., value]` | `@task(kwargs=...)` |
2020
| --------------------------------------- | :------------------------: | :---------------------: | :-----------------: |
21-
| Not deprecated | | | |
22-
| No type annotations required | | | |
23-
| Flexible choice of argument name | | | |
24-
| Supports third-party functions as tasks | | | |
21+
| Not deprecated ||||
22+
| No type annotations required ||||
23+
| Flexible choice of argument name ||||
24+
| Supports third-party functions as tasks ||||
2525

2626
(default-argument)=
2727

@@ -60,11 +60,11 @@ dictionary. It applies to dependencies and products alike.
6060

6161
| | `def task(arg: Annotated[..., Product] = ...)` | `Annotated[..., value, Product]` | `produces` | `@task(produces=...)` | `def task() -> Annotated[..., value]` |
6262
| --------------------------------------------------------- | :--------------------------------------------: | :------------------------------: | :--------: | :-------------------: | :-----------------------------------: |
63-
| Not deprecated | | | | | |
64-
| No type annotations required | | | | | |
65-
| Flexible choice of argument name | | | | | |
66-
| Supports third-party functions as tasks | | | | | |
67-
| Allows to pass custom node while preserving type of value | | | | | |
63+
| Not deprecated ||||||
64+
| No type annotations required ||||||
65+
| Flexible choice of argument name ||||||
66+
| Supports third-party functions as tasks ||||||
67+
| Allows to pass custom node while preserving type of value ||||||
6868

6969
### `Product` annotation
7070

docs_src/how_to_guides/bp_complex_task_repetitions/example_improved.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from myproject.config import EXPERIMENTS
55
from myproject.config import data_catalog
6+
67
from pytask import task
78

89
for experiment in EXPERIMENTS:

docs_src/how_to_guides/bp_structure_of_task_files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
import pandas as pd
44
from checks import perform_general_checks_on_data
5-
from pytask import Product
65
from typing_extensions import Annotated
76

7+
from pytask import Product
8+
89

910
def task_prepare_census_data(
1011
path_to_raw_census: Path = Path("raw_census.csv"),

docs_src/how_to_guides/capturing_warnings_1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from pathlib import Path
22

33
import pandas as pd
4-
from pytask import Product
54
from typing_extensions import Annotated
65

6+
from pytask import Product
7+
78

89
def _create_df() -> pd.DataFrame:
910
df = pd.DataFrame({"a": range(10), "b": range(10, 20)})

docs_src/how_to_guides/capturing_warnings_2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from pathlib import Path
22

33
import pandas as pd
4+
from typing_extensions import Annotated
5+
46
import pytask
57
from pytask import Product
6-
from typing_extensions import Annotated
78

89

910
def _create_df() -> pd.DataFrame:

docs_src/how_to_guides/hashing_inputs_of_tasks_example_3_py310.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from typing import Any
55

66
from deepdiff import DeepHash
7+
78
from pytask import Product
89
from pytask import PythonNode
910

docs_src/how_to_guides/migrating_from_scripts_to_pytask_4.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
from pathlib import Path
33

44
import pandas as pd
5-
from pytask import Product
65
from typing_extensions import Annotated
76

7+
from pytask import Product
8+
89

910
def task_prepare_data(
1011
path_to_csv: Path = Path("data.csv"),

docs_src/how_to_guides/migrating_from_scripts_to_pytask_5.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
from typing import Optional
33

44
import pandas as pd
5-
from pytask import Product
65
from typing_extensions import Annotated
76

7+
from pytask import Product
8+
89

910
def task_merge_data(
1011
paths_to_input_data: Optional[dict[str, Path]] = None,

docs_src/how_to_guides/provisional_products.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from pathlib import Path
22

33
import httpx
4+
from typing_extensions import Annotated
5+
46
from pytask import DirectoryNode
57
from pytask import Product
6-
from typing_extensions import Annotated
78

89

910
def get_files_without_file_extensions_from_repo() -> list[str]:

0 commit comments

Comments
 (0)