-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
task: use uv #447
task: use uv #447
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it. If you fix the last 2 missing spaces, I say let's merge !
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
with: | ||
enable-cache: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL
@@ -35,4 +33,4 @@ export BOTO_CONFIG=/dev/null | |||
|
|||
PYTHON=${PYTHON:-python} | |||
# run tests | |||
$PYTHON -m pytest --no-success-flaky-report -q $PYTEST_OPTIONS "$@" | |||
pytest --no-success-flaky-report -q $PYTEST_OPTIONS "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(for next PR: https://pypi.org/project/pytest-env/ and the PYTEST_OPTIONS should rather be in pyproject.toml, as addopts
)
@@ -58,4 +58,4 @@ jobs: | |||
|
|||
- name: Test | |||
run: | | |||
./script/test -v | |||
uv run ./script/test -v |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Someday, we may even not need a custom script and we can launch pytest directly :D
@@ -43,7 +43,7 @@ def domain(self, value: Domain): | |||
from simpleflow.swf.mapper.models.domain import Domain | |||
|
|||
if not isinstance(value, Domain): | |||
err = "domain property has to be of" f"swf.model.domain.Domain type, not {type(value)!r}" | |||
err = f"domain property has to be ofswf.model.domain.Domain type, not {type(value)!r}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, a good opportunity to fix that
@@ -48,7 +48,7 @@ def domain(self) -> Domain | None: | |||
@domain.setter | |||
def domain(self, value: Domain): | |||
if not isinstance(value, Domain): | |||
err = "domain property has to be of" f"swf.model.domain.Domain type, not {type(value)!r}" | |||
err = f"domain property has to be ofswf.model.domain.Domain type, not {type(value)!r}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix here too
Signed-off-by: Yves Bastide <[email protected]>
Signed-off-by: Yves Bastide <[email protected]>
WIP Signed-off-by: Yves Bastide <[email protected]>
Signed-off-by: Yves Bastide <[email protected]>
Signed-off-by: Yves Bastide <[email protected]>
Signed-off-by: Yves Bastide <[email protected]>
(do you plan to add something else to the PR ? Is it still a draft ?) |
Signed-off-by: Yves Bastide <[email protected]>
Sorry, I had forgotten it 🙂 |
Two unrelated commits as usual 🙈
Signed-off-by: Yves Bastide [email protected]