Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask-r) and

- {pull}`33` deprecates INI configurations and aligns the plugin with pytask v0.3.
- {pull}`34` adds mypy, ruff and refurb.
- {pull}`35` publishes types.

## 0.2.0 - 2022-04-16

Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ exclude tox.ini

include LICENSE
include README.md

recursive-include src py.typed
2 changes: 1 addition & 1 deletion src/pytask_r/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def pytask_parse_config(config: dict[str, Any]) -> None:
config["r_options"] = _parse_value_or_whitespace_option(config.get("r_options"))


def _parse_value_or_whitespace_option(value: str | None) -> None | str | list[str]:
def _parse_value_or_whitespace_option(value: Any) -> list[str] | None:
"""Parse option which can hold a single value or values separated by new lines."""
if value is None:
return None
Expand Down
Empty file added src/pytask_r/py.typed
Empty file.
5 changes: 3 additions & 2 deletions src/pytask_r/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@


def r(
script: str | Path = None,
*,
script: str | Path,
options: str | Iterable[str] | None = None,
serializer: str | Callable[..., str] | str | None = None,
suffix: str | None = None,
Expand All @@ -23,7 +24,7 @@ def r(

Parameters
----------
script : Union[str, Path]
script : str | Path
The path to the R script which is executed.
options : str | Iterable[str]
One or multiple command line options passed to Rscript.
Expand Down