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

added ruff lint and format #656

Closed
wants to merge 5 commits into from
Closed

Conversation

litan1106
Copy link
Contributor

@litan1106 litan1106 commented Jan 10, 2024

Description

  • added a standardized way to lint and auto-format code. (like the golang fmt auto formatted)

How to use it?

  • execute tox -e ruff to auto-format code

Issue reference

  • we discussed it in discord python-sdk channel

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@litan1106 litan1106 requested review from a team as code owners January 10, 2024 16:47
litan1106 and others added 4 commits January 10, 2024 09:01
…vities (dapr#651)

* initial code for decorators and optional naming of workflows and activities

Signed-off-by: Mukundan Sundararajan <[email protected]>

* add alternater_name decorator

Signed-off-by: Mukundan Sundararajan <[email protected]>

* fix linter

Signed-off-by: Mukundan Sundararajan <[email protected]>

* address review comments.

Signed-off-by: Mukundan Sundararajan <[email protected]>

* address review comments.

Signed-off-by: Mukundan Sundararajan <[email protected]>

---------

Signed-off-by: Mukundan Sundararajan <[email protected]>
* Documents usage of `DAPR_API_TOKEN`

Signed-off-by: Elena Kolevska <[email protected]>

* Adds link to dapr api token docs

Signed-off-by: Elena Kolevska <[email protected]>

---------

Signed-off-by: Elena Kolevska <[email protected]>
Co-authored-by: Bernd Verst <[email protected]>
Signed-off-by: Li Tan <[email protected]>
Copy link
Member

@berndverst berndverst left a comment

Choose a reason for hiding this comment

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

Please recreate the PR against the latest changes in main branch. I see you have some merge commit markers some places.

We want to continue using flake8 as our only linter, but ruff as autoformatter looks good..

After making your changes using ruff, please also run tox -e py311 (if you use Python 3.11, otherwise use py312 etc), tox -e type, tox -e flake8

@litan1106 litan1106 closed this Jan 10, 2024
@litan1106 litan1106 deleted the Add-ruff-linter branch January 10, 2024 22:19
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.

5 participants