forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add linting rules for ruff #22741
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
Merged
Merged
Add linting rules for ruff #22741
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
fc25078
Add linting rules for ruff
brettcannon 39f7e0f
Fix rule ambiguity
brettcannon 89d6427
Run Ruff in CI
brettcannon 78184b9
Merge branch 'main' of https://github.com/microsoft/vscode-python int…
brettcannon cfe2e39
Add Ruff to linting
brettcannon e7bbb89
Drop check that triggered an error
brettcannon cf89dcc
Update pythonFiles/pyproject.toml
brettcannon 5813c9b
Merge branch 'main' into ruff-rules
brettcannon 5c33286
Merge branch 'main' into ruff-rules
brettcannon 2bb5dea
Simplify what lints we perform
brettcannon e50da48
Merge branch 'main' of https://github.com/microsoft/vscode-python int…
brettcannon b3e65e7
Lessen the lints, but fix all the remaining ones
brettcannon b4b4947
Make Black happy
brettcannon 5cef735
Simplify an import
brettcannon 8adac59
Fix refactor mistake
brettcannon 1c6711b
Fix another refactor mistake
brettcannon 5bb95fa
fix tests by removing reference to typing_extensions
eleanorjboyd 52a1800
add logging
eleanorjboyd 8b5b294
redo on print error
eleanorjboyd 9b08fed
Remove a dead import
brettcannon 0e5c071
Strip unnecessary `sys.path` manipulations
brettcannon 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import sys | ||
import os | ||
import sys | ||
|
||
# Add the lib path to our sys path so jedi_language_server can find its references | ||
EXTENSION_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | ||
sys.path.insert(0, os.path.join(EXTENSION_ROOT, "python_files", "lib", "jedilsp")) | ||
|
||
|
||
from jedi_language_server.cli import cli | ||
from jedi_language_server.cli import cli # noqa: E402 | ||
|
||
sys.exit(cli()) |
This file contains hidden or 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 hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
import os | ||
import pytest | ||
import subprocess | ||
import sys | ||
|
||
|
||
def _check_binaries(dir_path): | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.