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

Use ruff for linting #771

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

Use ruff for linting #771

wants to merge 33 commits into from

Conversation

dandavison
Copy link
Contributor

WISOTT

PR targets maturin branch #768

Without this,

  File "/Users/dan/src/temporalio/sdk-python/.venv/lib/python3.13/site-packages/setuptools/config/pyprojecttoml.py", line 55, in validate
    raise ValueError(f"{error}\n{summary}") from None
ValueError: invalid pyproject.toml config: `project.license`.
configuration error: `project.license` must be valid exactly by one definition (2 matches found):

    - keys:
        'file': {type: string}
      required: ['file']
    - keys:
        'text': {type: string}
      required: ['text']
Don't understand why they are showing on this branch only under same
versions as main:

Python 3.13.1
mypy 1.4.1 (compiled: no)
As seen in pydantic-core
Do not use `--no-install-project`.
@dandavison dandavison requested a review from a team as a code owner February 18, 2025 15:48
import tests.worker.workflow_sandbox.testmodules.invalid_module
pass
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this meant to be removed?

@@ -194,9 +194,9 @@

# gRPC is optional
try:
import grpc
import grpc # noqa # type: ignore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for my own curiosity, what was failing here that is requiring these two comments?

Comment on lines +936 to +937
# TODO: wat
f(self, other) # type: ignore # noqa: F821
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not know what I was thinking here, but it's likely a bug. Would definitely welcome a test that covers this and fixes it to do what it is supposed to.

@dandavison dandavison force-pushed the maturin branch 6 times, most recently from e89f5b2 to bc54894 Compare February 19, 2025 02:40
Base automatically changed from maturin to main February 19, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants