mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-27 06:11:24 +08:00
Replace isort with Ruff (#10912)
This commit is contained in:
9
.vscode/extensions.json
vendored
9
.vscode/extensions.json
vendored
@@ -7,7 +7,6 @@
|
||||
"editorconfig.editorconfig",
|
||||
"ms-python.black-formatter",
|
||||
"ms-python.flake8",
|
||||
"ms-python.isort",
|
||||
"ms-python.mypy-type-checker",
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance",
|
||||
@@ -16,17 +15,19 @@
|
||||
],
|
||||
"unwantedRecommendations": [
|
||||
/*
|
||||
* Don't recommend by default for this workspace
|
||||
* Don't recommend by default for this workspace
|
||||
*/
|
||||
"christian-kohler.npm-intellisense",
|
||||
/*
|
||||
* Must disable in this workspace
|
||||
* https://github.com/microsoft/vscode/issues/40239
|
||||
* Must disable in this workspace
|
||||
* https://github.com/microsoft/vscode/issues/40239
|
||||
*/
|
||||
// even-better-toml has format on save
|
||||
"bungcip.better-toml",
|
||||
// Don't use two mypy extensions simultaneously
|
||||
"matangover.mypy",
|
||||
// Use Ruff instead
|
||||
"ms-python.isort",
|
||||
// We use Black
|
||||
"ms-python.autopep8",
|
||||
// Not using pylint
|
||||
|
||||
8
.vscode/settings.default.json
vendored
8
.vscode/settings.default.json
vendored
@@ -80,7 +80,6 @@
|
||||
"python.linting.prospectorEnabled": false,
|
||||
"python.linting.pylamaEnabled": false,
|
||||
"python.linting.pylintEnabled": false,
|
||||
// Not using bandit
|
||||
"python.linting.banditEnabled": false,
|
||||
// python.analysis is Pylance (pyright) configurations
|
||||
"python.analysis.fixAll": [
|
||||
@@ -109,13 +108,12 @@
|
||||
"--config=.flake8"
|
||||
],
|
||||
"flake8.importStrategy": "fromEnvironment",
|
||||
"isort.check": true,
|
||||
"isort.importStrategy": "fromEnvironment",
|
||||
"black-formatter.importStrategy": "fromEnvironment",
|
||||
// Using Ruff instead of isort
|
||||
"isort.check": false,
|
||||
"ruff.importStrategy": "fromEnvironment",
|
||||
"ruff.fixAll": true,
|
||||
// Conflict between Ruff and isort
|
||||
"ruff.organizeImports": false,
|
||||
"ruff.organizeImports": true,
|
||||
"evenBetterToml.formatter.alignComments": false,
|
||||
"evenBetterToml.formatter.alignEntries": false,
|
||||
"evenBetterToml.formatter.allowedBlankLines": 1,
|
||||
|
||||
Reference in New Issue
Block a user