Skip to content
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

Merged
merged 7 commits into from
Jan 24, 2025
Merged

task: use uv #447

merged 7 commits into from
Jan 24, 2025

Conversation

ybastide
Copy link
Contributor

@ybastide ybastide commented Jan 17, 2025

Two unrelated commits as usual 🙈

Signed-off-by: Yves Bastide [email protected]

@ybastide ybastide changed the title feat(cli): unquote run IDs task: use uv Jan 17, 2025
Copy link
Contributor

@ewjoachim ewjoachim left a 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 !

Comment on lines +46 to +49
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
Copy link
Contributor

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 "$@"
Copy link
Contributor

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
Copy link
Contributor

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}"
Copy link
Contributor

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}"
Copy link
Contributor

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]>
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]>
@ewjoachim
Copy link
Contributor

(do you plan to add something else to the PR ? Is it still a draft ?)

Signed-off-by: Yves Bastide <[email protected]>
@ybastide
Copy link
Contributor Author

(do you plan to add something else to the PR ? Is it still a draft ?)

Sorry, I had forgotten it 🙂

@ybastide ybastide marked this pull request as ready for review January 24, 2025 10:30
@ybastide ybastide merged commit 9141aec into main Jan 24, 2025
9 checks passed
@ybastide ybastide deleted the feat/use-uv branch January 24, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants