Skip to content

Commit a47f536

Browse files
committed
Merge branch 'main' into typed-settings-v2
2 parents d51d043 + 3e2d415 commit a47f536

20 files changed

+596
-349
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
python-version: ${{ matrix.python-version }}
3434
cache: pip
3535
allow-prereleases: true
36-
- run: pip install tox
36+
- run: pip install tox-uv
3737

3838
- if: matrix.os == 'ubuntu-latest'
3939
run: |

.github/workflows/update-plugin-list.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: python scripts/update_plugin_list.py
3838

3939
- name: Create Pull Request
40-
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc
40+
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e
4141
with:
4242
commit-message: '[automated] Update plugin list'
4343
author: 'Tobias Raabe <[email protected]>'

.pre-commit-config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ repos:
3333
hooks:
3434
- id: sort-all
3535
- repo: https://github.com/astral-sh/ruff-pre-commit
36-
rev: v0.3.2
36+
rev: v0.3.5
3737
hooks:
3838
- id: ruff-format
3939
- id: ruff
@@ -88,6 +88,11 @@ repos:
8888
mdformat-pyproject,
8989
]
9090
files: (docs/.)
91+
- repo: https://github.com/nbQA-dev/nbQA
92+
rev: 1.8.5
93+
hooks:
94+
- id: nbqa-mypy
95+
args: [--ignore-missing-imports]
9196
- repo: https://github.com/kynan/nbstripout
9297
rev: 0.7.1
9398
hooks:

docs/source/changes.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
1818
- {pull}`555` uses new-style hook wrappers and requires pluggy 1.3 for typing.
1919
- {pull}`557` fixes an issue with `@task(after=...)` in notebooks and terminals.
2020
- {pull}`566` makes universal-pathlib an official dependency.
21+
- {pull}`567` adds uv to the CI workflow for faster installation.
2122
- {pull}`568` restricts `task_files` to a list of patterns and raises a better error.
2223
- {pull}`569` removes the hooks related to the creation of the DAG.
2324
- {pull}`571` removes redundant calls to `PNode.state()` which causes a high penalty for
@@ -27,6 +28,22 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
2728
debugging modes swallowed the return and `None` was returned. Closes {issue}`574`.
2829
- {pull}`581` simplifies the code for tracebacks and unpublishes some utility functions.
2930
- {pull}`582` use typed-settings to parse configuration files and create the CLI.
31+
- {pull}`586` improves linting.
32+
- {pull}`587` improves typing of `capture.py`.
33+
- {pull}`588` resets class variables of `ExecutionReport` and `Traceback`.
34+
- {pull}`589` enables `import_path` to resolve the root path and module name of an
35+
imported file.
36+
- {pull}`590` fixes an error introduced in {pull}`588`.
37+
- {pull}`591` invalidates the cache of fsspec when checking whether a remote file
38+
exists. Otherwise, a remote file might be reported as missing although it was just
39+
created. See https://github.com/fsspec/s3fs/issues/851 for more info.
40+
- {pull}`593` recreate `PythonNode`s every run since they carry the `_NoDefault` enum as
41+
the value whose state is `None`.
42+
- {pull}`594` publishes `NodeLoadError`.
43+
44+
## 0.4.7 - 2024-03-19
45+
46+
- {pull}`580` is a backport of {pull}`579`.
3047

3148
## 0.4.6 - 2024-03-13
3249

environment.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,22 @@ dependencies:
2121
- sqlalchemy >=2
2222
- tomli >=1.0.0
2323
- typing_extensions
24-
- universal_pathlib
24+
- universal_pathlib >=0.2.2
2525

2626
# Misc
2727
- deepdiff
2828
- ipywidgets
2929
- jupyterlab
3030
- matplotlib
3131
- nbmake
32-
- pre-commit
3332
- pygraphviz
3433
- pytest
3534
- pytest-cov
3635
- pytest-xdist
3736
- ruff
3837
- syrupy
3938
- tabulate
40-
- tox
39+
- tox-uv
4140

4241
# Documentation
4342
- furo
@@ -47,8 +46,8 @@ dependencies:
4746
- sphinx-click
4847
- sphinx-copybutton
4948
- sphinx-design >=0.3.0
49+
- sphinx-toolbox
5050
- sphinxext-opengraph
5151

5252
- pip:
53-
- sphinx-toolbox
5453
- -e .

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,12 @@ extend-include = ["*.ipynb"]
112112
[tool.ruff.lint]
113113
select = ["ALL"]
114114
ignore = [
115-
"FBT", # flake8-boolean-trap
116-
"TRY", # ignore tryceratops.
117-
# Others.
118-
"ANN101", # type annotating self
119-
"ANN102", # type annotating cls
115+
"ANN101",
116+
"ANN102",
120117
"ANN401", # flake8-annotate typing.Any
121118
"COM812", # Comply with ruff-format.
122119
"ISC001", # Comply with ruff-format.
120+
"FBT",
123121
"PD901", # Avoid generic df for dataframes.
124122
"S101", # raise errors for asserts.
125123
"S603", # Call check with subprocess.run.

scripts/update_plugin_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
)
7171

7272

73-
_EXCLUDED_PACKAGES = ["pytask-io"]
73+
_EXCLUDED_PACKAGES = ["pytask-io", "pytask-list"]
7474

7575

7676
def _escape_rst(text: str) -> str:

src/_pytask/_inspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def get_annotations( # noqa: C901, PLR0912, PLR0915
106106

107107
if not isinstance(ann, dict):
108108
msg = f"{obj!r}.__annotations__ is neither a dict nor None"
109-
raise ValueError(msg)
109+
raise ValueError(msg) # noqa: TRY004
110110

111111
if not ann:
112112
return {}

0 commit comments

Comments
 (0)