malek_t

Untitled

Sep 4th, 2025
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.82 KB | None | 0 0
  1. {
  2.   "editor.formatOnSave": true,
  3.  
  4.   // Use Ruff as linter
  5.   "python.linting.enabled": true,
  6.   "python.linting.ruffEnabled": true,
  7.  
  8.   // Turn off other linters if you only want Ruff
  9.   "python.linting.pylintEnabled": false,
  10.   "python.linting.flake8Enabled": false,
  11.   "python.linting.mypyEnabled": false,
  12.  
  13.   // Format with Ruff
  14.   "editor.defaultFormatter": "charliermarsh.ruff",
  15.  
  16.   "ruff.lineLength": 120,
  17.  
  18.   "ruff.exclude": [
  19.     ".git",
  20.     ".venv",
  21.     "venv",
  22.     "__pycache__",
  23.     "dist",
  24.     "build",
  25.     "*.egg-info",
  26.   ],
  27.  
  28.   "ruff.lint.select": [
  29.     "E",
  30.     "F",
  31.     "I",
  32.     "UP",
  33.   ],
  34.  
  35.   // Optional: run Ruff organize imports on save
  36.   "[python]": {
  37.     "editor.codeActionsOnSave": {
  38.       "source.fixAll.ruff": "explicit",
  39.       "source.organizeImports.ruff": "explicit"
  40.     }
  41.   }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment