forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add Ruff to CI #21739
Merged
Merged
Add Ruff to CI #21739
Changes from 8 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
3740925
run ruff instead of pyright
anthonykim1 2005d16
Fix github action name by capitalizing
anthonykim1 4b8b9c2
format with prettier
anthonykim1 b424581
add Ruff to lint workflow
anthonykim1 3bb9461
line-length 120 for Ruff toml
anthonykim1 0591728
exempt testing files as such from Pyright
anthonykim1 54d3c42
Ignore testing_tools files same as Pyright way
anthonykim1 d3ba893
Change line length to 140
anthonykim1 7b2efc8
ignore import top level warning
anthonykim1 35c28c5
exclude old testing files
anthonykim1 6406c6d
fix empty try except
anthonykim1 48f0164
fix more bare exceptions
anthonykim1 cf15203
remove unused imports
anthonykim1 2f92f7e
fix true conditional to ruff compliant
anthonykim1 c3579e2
bring back import used in testing
anthonykim1 a9c4863
bring back import something_else
anthonykim1 db6dda4
bring back import something_else
anthonykim1 ab4d1fe
skip old test file and incorrect file name
anthonykim1 5bac895
fix typo on .toml file
anthonykim1 5c129d7
format comment and respect ruff confused imports
anthonykim1 b51a2ec
Merge branch 'main' into add-ruff-to-CI
anthonykim1 8cd26e0
remove unused imports expected_execution_test_out
anthonykim1 cf0d542
fix warning execution.py
anthonykim1 85ea52f
fix warning logParser.py
anthonykim1 46a2911
switch from github action to pip install
anthonykim1 a7c6d51
follow ruff doc to run
anthonykim1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't need to use this GH action. We can run it directly like we do black in the previous one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So do you mean get rid of it and do "python -m pip install -U ruff" and "python -m ruff . --check" ? Whats the difference between two?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched like advised and passing all the test!