Skip to content

Commit 79c3612

Browse files
committed
Update tasks.json to use Python interpreter for Ruff and Pylint commands
1 parent cd8c8d3 commit 79c3612

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

.vscode/tasks.json

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
"tasks": [
66
{
77
"label": "🧽 Run Ruff Formatter",
8-
"command": "ruff",
8+
"command": "${command:python.interpreterPath}",
99
"args": [
10+
"-m",
11+
"ruff",
1012
"format"
1113
],
1214
"options": {
@@ -28,9 +30,12 @@
2830
},
2931
{
3032
"label": "🔦 Run Ruff Linter",
31-
"command": "ruff",
33+
"command": "${command:python.interpreterPath}",
3234
"args": [
35+
"-m",
36+
"ruff",
3337
"check",
38+
"--fix",
3439
],
3540
"options": {
3641
"cwd": "${workspaceFolder}"
@@ -51,14 +56,20 @@
5156
},
5257
{
5358
"label": "🔦 Run Pylint",
54-
"command": "pylint",
59+
"command": "${command:python.interpreterPath}",
5560
"args": [
61+
"-m",
62+
"pylint",
5663
"plotpy",
57-
"--disable=C",
64+
"--disable=duplicate-code",
5865
"--disable=fixme",
59-
"--disable=R",
60-
"--disable=W",
61-
"--ignore=external"
66+
"--disable=too-many-arguments",
67+
"--disable=too-many-branches",
68+
"--disable=too-many-instance-attributes",
69+
"--disable=too-many-lines",
70+
"--disable=too-many-locals",
71+
"--disable=too-many-public-methods",
72+
"--disable=too-many-statements"
6273
],
6374
"options": {
6475
"cwd": "${workspaceFolder}"

0 commit comments

Comments
 (0)