Skip to content

Commit 8e8a24e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 81973bc commit 8e8a24e

File tree

10 files changed

+11
-4
lines changed

10 files changed

+11
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ Use the `serializer` keyword arguments of the `@pytask.mark.julia` decorator wit
213213

214214
```python
215215
@pytask.mark.julia(script="script.jl", serializer="yaml")
216-
def task_example():
217-
...
216+
def task_example(): ...
218217
```
219218

220219
And in your Julia script use
@@ -236,8 +235,7 @@ import json
236235

237236

238237
@pytask.mark.julia(script="script.jl", serializer=json.dumps, suffix=".json")
239-
def task_example():
240-
...
238+
def task_example(): ...
241239
```
242240

243241
### Configuration

src/pytask_julia/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module contains the main namespace."""
2+
23
from __future__ import annotations
34

45
try:

src/pytask_julia/collect.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Collect tasks."""
2+
23
from __future__ import annotations
34

45
import subprocess

src/pytask_julia/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Configure pytask."""
2+
23
from __future__ import annotations
34

45
from typing import Any

src/pytask_julia/execute.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Execute tasks."""
2+
23
from __future__ import annotations
34

45
import shutil

src/pytask_julia/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Register hook specifications and implementations."""
2+
23
from __future__ import annotations
34

45
from typing import TYPE_CHECKING

src/pytask_julia/serialization.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module contains the code to serialize keyword arguments to the task."""
2+
23
from __future__ import annotations
34

45
import json

src/pytask_julia/shared.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module contains shared functions."""
2+
23
from __future__ import annotations
34

45
from pathlib import Path

tests/test_normal_execution_w_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Contains tests which do not require the plugin and ensure normal execution."""
2+
23
from __future__ import annotations
34

45
import textwrap

tests/test_parallel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Contains test which ensure that the plugin works with pytask-parallel."""
2+
23
from __future__ import annotations
34

45
import textwrap

0 commit comments

Comments
 (0)