Skip to content

Commit cf05f16

Browse files
committed
Fix.
1 parent df04fbe commit cf05f16

File tree

142 files changed

+357
-360
lines changed

Some content is hidden

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

142 files changed

+357
-360
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ repos:
2424
- id: python-check-mock-methods
2525
- id: python-no-log-warn
2626
- id: text-unicode-replacement-char
27-
- repo: https://github.com/asottile/reorder-python-imports
28-
rev: v3.12.0
29-
hooks:
30-
- id: reorder-python-imports
31-
args: [--py38-plus, --add-import, 'from __future__ import annotations']
32-
exclude: ^(docs_src/)
33-
- repo: https://github.com/asottile/reorder-python-imports
34-
rev: v3.12.0
35-
hooks:
36-
- id: reorder-python-imports
37-
args: [--py38-plus]
38-
files: ^(docs_src/)
3927
# - repo: https://github.com/tox-dev/pyproject-fmt
4028
# rev: 1.2.0
4129
# hooks:
@@ -45,7 +33,7 @@ repos:
4533
hooks:
4634
- id: sort-all
4735
- repo: https://github.com/astral-sh/ruff-pre-commit
48-
rev: v0.2.2
36+
rev: v0.3.1
4937
hooks:
5038
- id: ruff-format
5139
- id: ruff
@@ -90,7 +78,7 @@ repos:
9078
]
9179
files: (docs/.)
9280
- repo: https://github.com/nbQA-dev/nbQA
93-
rev: 1.7.1
81+
rev: 1.8.4
9482
hooks:
9583
- id: nbqa-black
9684
- id: nbqa-isort

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
documentation: https://www.sphinx-doc.org/en/master/usage/configuration.html
55
66
"""
7+
78
from __future__ import annotations
89

910
import inspect

docs_src/how_to_guides/bp_scaling_tasks_1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from my_project.config import BLD
55
from my_project.config import SRC
66

7-
87
DATA = {
98
"data_0": {"subset": "subset_1"},
109
"data_1": {"subset": "subset_2"},

docs_src/how_to_guides/bp_scaling_tasks_3.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from my_project.config import BLD
55
from my_project.data_preparation.config import DATA
66

7-
87
_MODELS = ["linear_probability", "logistic_model", "decision_tree"]
98

109

docs_src/how_to_guides/bp_structure_of_task_files.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ def task_prepare_census_data(
2626
df.to_pickle(path_to_census)
2727

2828

29-
def _clean_data(df: pd.DataFrame) -> None:
30-
...
29+
def _clean_data(df: pd.DataFrame) -> None: ...
3130

3231

33-
def _create_new_variables(df: pd.DataFrame) -> None:
34-
...
32+
def _create_new_variables(df: pd.DataFrame) -> None: ...

docs_src/how_to_guides/interfaces/dependencies_annotation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44
from pytask import PathNode
55

66

7-
def task_example(path: Annotated[Path, PathNode(path=Path("input.txt"))]) -> None:
8-
...
7+
def task_example(path: Annotated[Path, PathNode(path=Path("input.txt"))]) -> None: ...
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from pathlib import Path
22

33

4-
def task_example(path: Path = Path("input.txt")) -> None:
5-
...
4+
def task_example(path: Path = Path("input.txt")) -> None: ...

docs_src/how_to_guides/interfaces/dependencies_task_kwargs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@
44

55

66
@task(kwargs={"path": Path("input.txt")})
7-
def task_example(path: Path) -> None:
8-
...
7+
def task_example(path: Path) -> None: ...

docs_src/how_to_guides/migrating_from_scripts_to_pytask_1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Content of task_data_management.py
22
import pandas as pd
33

4-
54
df = pd.read_csv("data.csv")
65

76
# Many operations.

docs_src/how_to_guides/remote_files/https.py

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

44
from upath import UPath
55

6-
76
url = UPath("https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data")
87

98

0 commit comments

Comments
 (0)