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

chore(dependency-mgmt): format *.py files under ci/src/dependencies #1750

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

venkkatesh-sekar
Copy link
Member

@venkkatesh-sekar venkkatesh-sekar commented Sep 30, 2024

The code in ci/src/dependencies is not formatted properly. I used to rely on bazel run //:ruff-format but TIL it only does the lint fixes and doesn't do formatting.

In this PR,

  • Update ruff to the latest version
  • Adapt warnings in pyproject.toml
  • Format files in ci/src/dependencies with bazel run @ruff//:ruff format ci/src/dependencies
  • An empty line lint fix in ic-os/components/conformance_tests/check_file_references.py

@github-actions github-actions bot added the chore label Sep 30, 2024
@venkkatesh-sekar venkkatesh-sekar requested a review from a team as a code owner September 30, 2024 13:48
@github-actions github-actions bot added the @node label Sep 30, 2024
Copy link
Contributor

@tmu0 tmu0 left a comment

Choose a reason for hiding this comment

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

Thanks! Makes sense that bazel run //:ruff-format doesn't format 🤣
Then the CI job that checks formatting might need to be adapted as well because it did not turn red

@venkkatesh-sekar
Copy link
Member Author

Thanks! Makes sense that bazel run //:ruff-format doesn't format 🤣 Then the CI job that checks formatting might need to be adapted as well because it did not turn red

Agree, I will probably follow up in a separate PR as that might throw more errors in other files.

@venkkatesh-sekar venkkatesh-sekar added this pull request to the merge queue Sep 30, 2024
Merged via the queue into master with commit 4bfed67 Sep 30, 2024
27 checks passed
@venkkatesh-sekar venkkatesh-sekar deleted the vsekar/update-ruff branch September 30, 2024 14:29
levifeldman pushed a commit to levifeldman/ic that referenced this pull request Oct 1, 2024
…dfinity#1750)

The code in `ci/src/dependencies` is not formatted properly. I used to
rely on `bazel run //:ruff-format` but TIL it only does the lint fixes
and doesn't do formatting.

In this PR,

- Update ruff to the latest version
- Adapt warnings in pyproject.toml
- Format files in `ci/src/dependencies` with `bazel run @ruff//:ruff
format ci/src/dependencies`
- An empty line lint fix in
`ic-os/components/conformance_tests/check_file_references.py`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants