Skip to content

Conversation

@ybastide
Copy link
Contributor

@ybastide ybastide commented Jan 17, 2025

Two unrelated commits as usual 🙈

Signed-off-by: Yves Bastide yves@botify.com

@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

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)

- 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


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

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 <yves@botify.com>
Signed-off-by: Yves Bastide <yves@botify.com>
WIP

Signed-off-by: Yves Bastide <yves@botify.com>
Signed-off-by: Yves Bastide <yves@botify.com>
Signed-off-by: Yves Bastide <yves@botify.com>
Signed-off-by: Yves Bastide <yves@botify.com>
@ewjoachim
Copy link
Contributor

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

Signed-off-by: Yves Bastide <yves@botify.com>
@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.

3 participants