forked from dagger/dagger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix dev module * Update dependencies * Replace black with ruff * Start moving rye -> uv * Improve the ruff base container * Format with updated ruff * Update rtd * Fix rule extension from outside the SDK dir --------- Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
- Loading branch information
Showing
62 changed files
with
2,419 additions
and
1,341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
# FIXME: Temporary, until sdk/python/.readthedocs.yaml is merged | ||
|
||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
python: | ||
install: | ||
- method: pip | ||
path: sdk/python | ||
- requirements: sdk/python/requirements.txt | ||
commands: | ||
- asdf plugin add uv | ||
- asdf install uv latest | ||
- asdf global uv latest | ||
- cd sdk/python && uv run python -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extend = "sdk/python/ruff.toml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
from dagger import function | ||
from typing import Annotated | ||
|
||
from dagger import Arg, function | ||
|
||
|
||
@function | ||
def fn(id: str) -> str: | ||
return id | ||
def fn(id_: Annotated[str, Arg("id")]) -> str: | ||
return id_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from dagger import function | ||
|
||
@function | ||
def id() -> str: | ||
|
||
@function(name="id") | ||
def id_() -> str: | ||
return "NOOOO!!!!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
# Adding ruff ignores here to avoid a noqa comment in the snippets | ||
# and very doc specific rules in the SDK's pyproject.toml. | ||
extend = "../../sdk/python/pyproject.toml" | ||
extend = "../../.ruff.toml" | ||
|
||
[lint] | ||
ignore = [ | ||
"D1", # docstrings | ||
"E501", # line too long | ||
"S108", # probable insecure usage of temporary file or directory | ||
"S311", # pseudo-random not safe | ||
"T201", # `print` found | ||
"PLR0913", # too many arguments | ||
"DTZ", # timezones not used | ||
"PLR0913", # allow more than 5 arguments in a function | ||
"RET504", # variable name can be useful as documentation | ||
"S311", # pseudo-random generators not used for security | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.