Advertisement
Guest User

My VSCode Python configuration

a guest
Mar 13th, 2017
623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "python.promptToInstallJupyter": true,
  2.  
  3.   // Path to Python, you can use a custom version of Python by modifying this setting to include the full path.
  4.   "python.pythonPath": "python",
  5.  
  6.   // Path to folder with a list of Virtual Environments (e.g. ~/.pyenv, ~/Envs, ~/.virtualenvs).
  7.   "python.venvPath": "",
  8.  
  9.   // Absolute path to a file containing environment variable definitions.
  10.   "python.envFile": "${workspaceRoot}/.env",
  11.  
  12.   // Path to directory containing the Jedi library (this path will contain the 'Jedi' sub directory).
  13.   "python.jediPath": "",
  14.  
  15.   // Path to isort script, default using inner version
  16.   "python.sortImports.path": "",
  17.  
  18.   // Arguments passed in. Each argument is a separate item in the array.
  19.   "python.sortImports.args": [],
  20.  
  21.   // Whether to lint Python files.
  22.   "python.linting.enabled": true,
  23.  
  24.   // Whether to lint Python files when no workspace is opened.
  25.   "python.linting.enabledWithoutWorkspace": true,
  26.  
  27.   // Whether to lint Python files using prospector.
  28.   "python.linting.prospectorEnabled": false,
  29.  
  30.   // Whether to lint Python files using pylint.
  31.   "python.linting.pylintEnabled": true,
  32.  
  33.   // Whether to lint Python files using pep8
  34.   "python.linting.pep8Enabled": false,
  35.  
  36.   // Whether to lint Python files using flake8
  37.   "python.linting.flake8Enabled": false,
  38.  
  39.   // Whether to lint Python files using pydocstyle
  40.   "python.linting.pydocstyleEnabled": false,
  41.  
  42.   // Whether to lint Python files using mypy.
  43.   "python.linting.mypyEnabled": false,
  44.  
  45.   // Whether to lint Python files when modified.
  46.   "python.linting.lintOnTextChange": true,
  47.  
  48.   // Whether to lint Python files when saved.
  49.   "python.linting.lintOnSave": true,
  50.  
  51.   // Controls the maximum number of problems produced by the server.
  52.   "python.linting.maxNumberOfProblems": 100,
  53.  
  54.   // Severity of Pylint message type 'Convention/C'.
  55.   "python.linting.pylintCategorySeverity.convention": "Information",
  56.  
  57.   // Severity of Pylint message type 'Refactor/R'.
  58.   "python.linting.pylintCategorySeverity.refactor": "Hint",
  59.  
  60.   // Severity of Pylint message type 'Warning/W'.
  61.   "python.linting.pylintCategorySeverity.warning": "Warning",
  62.  
  63.   // Severity of Pylint message type 'Error/E'.
  64.   "python.linting.pylintCategorySeverity.error": "Error",
  65.  
  66.   // Severity of Pylint message type 'Fatal/F'.
  67.   "python.linting.pylintCategorySeverity.fatal": "Error",
  68.  
  69.   // Path to Prospector, you can use a custom version of prospector by modifying this setting to include the full path.
  70.   "python.linting.prospectorPath": "prospector",
  71.  
  72.   // Path to Pylint, you can use a custom version of pylint by modifying this setting to include the full path.
  73.   "python.linting.pylintPath": "pylint",
  74.  
  75.   // Path to pep8, you can use a custom version of pep8 by modifying this setting to include the full path.
  76.   "python.linting.pep8Path": "pep8",
  77.  
  78.   // Path to flake8, you can use a custom version of flake8 by modifying this setting to include the full path.
  79.   "python.linting.flake8Path": "flake8",
  80.  
  81.   // Path to pydocstyle, you can use a custom version of pydocstyle by modifying this setting to include the full path.
  82.   "python.linting.pydocstylePath": "pydocstyle",
  83.  
  84.   // Path to mypy, you can use a custom version of mypy by modifying this setting to include the full path.
  85.   "python.linting.mypyPath": "mypy",
  86.  
  87.   // Arguments passed in. Each argument is a separate item in the array.
  88.   "python.linting.prospectorArgs": [],
  89.  
  90.   // Arguments passed in. Each argument is a separate item in the array.
  91.   "python.linting.pylintArgs": [],
  92.  
  93.   // Arguments passed in. Each argument is a separate item in the array.
  94.   "python.linting.pep8Args": [],
  95.  
  96.   // Arguments passed in. Each argument is a separate item in the array.
  97.   "python.linting.flake8Args": [],
  98.  
  99.   // Arguments passed in. Each argument is a separate item in the array.
  100.   "python.linting.pydocstyleArgs": [],
  101.  
  102.   // Arguments passed in. Each argument is a separate item in the array.
  103.   "python.linting.mypyArgs": [
  104.     "--ignore-missing-imports",
  105.     "--follow-imports=silent"
  106.   ],
  107.  
  108.   // The output window name for the linting messages, defaults to Python output window.
  109.   "python.linting.outputWindow": "Python",
  110.  
  111.   // Provider for formatting. Possible options include 'autopep8' and 'yapf'.
  112.   "python.formatting.provider": "autopep8",
  113.  
  114.   // Path to autopep8, you can use a custom version of autopep8 by modifying this setting to include the full path.
  115.   "python.formatting.autopep8Path": "autopep8",
  116.  
  117.   // Path to yapf, you can use a custom version of yapf by modifying this setting to include the full path.
  118.   "python.formatting.yapfPath": "yapf",
  119.  
  120.   // Arguments passed in. Each argument is a separate item in the array.
  121.   "python.formatting.autopep8Args": [],
  122.  
  123.   // Arguments passed in. Each argument is a separate item in the array.
  124.   "python.formatting.yapfArgs": [],
  125.  
  126.   // Format the document upon saving.
  127.   "python.formatting.formatOnSave": false,
  128.  
  129.   // The output window name for the formatting messages, defaults to Python output window.
  130.   "python.formatting.outputWindow": "Python",
  131.  
  132.   // Comma delimited list of modules preloaded to speed up Auto Complete (e.g. add Numpy, Pandas, etc, items slow to load when autocompleting).
  133.   "python.autoComplete.preloadModules": [],
  134.  
  135.   // List of paths to libraries and the like that need to be imported by auto complete engine. E.g. when using Google App SDK, the paths are not in system path, hence need to be added into this list.
  136.   "python.autoComplete.extraPaths": [],
  137.  
  138.   // Automatically add brackets for functions.
  139.   "python.autoComplete.addBrackets": false,
  140.  
  141.   // Fully qualified path to tag file (exuberant ctag file), used to provide workspace symbols.
  142.   "python.workspaceSymbols.tagFilePath": "${workspaceRoot}/.vscode/tags",
  143.  
  144.   // Set to 'false' to disable Workspace Symbol provider using ctags.
  145.   "python.workspaceSymbols.enabled": true,
  146.  
  147.   // Whether to re-build the tags file on start (deaults to true).
  148.   "python.workspaceSymbols.rebuildOnStart": true,
  149.  
  150.   // Whether to re-build the tags file on when changes made to python files are saved.
  151.   "python.workspaceSymbols.rebuildOnFileSave": true,
  152.  
  153.   // Fully qualilified path to the ctags executable (else leave as ctags, assuming it is in current path).
  154.   "python.workspaceSymbols.ctagsPath": "ctags",
  155.  
  156.   // Pattern used to exclude files and folders from ctags See http://ctags.sourceforge.net/ctags.html.
  157.   "python.workspaceSymbols.exclusionPatterns": [
  158.     "**/site-packages/**"
  159.   ],
  160.  
  161.   // Where to prompt to configure a test framework if potential tests directories are discovered.
  162.   "python.unitTest.promptToConfigure": true,
  163.  
  164.   // Port number used for debugging of unittests.
  165.   "python.unitTest.debugPort": 3000,
  166.  
  167.   // Whether to enable or disable unit testing using nosetests.
  168.   "python.unitTest.nosetestsEnabled": false,
  169.  
  170.   // Path to nosetests, you can use a custom version of nosetests by modifying this setting to include the full path.
  171.   "python.unitTest.nosetestPath": "nosetests",
  172.  
  173.   // Whether to enable or disable unit testing using pytest.
  174.   "python.unitTest.pyTestEnabled": false,
  175.  
  176.   // Path to pytest (py.test), you can use a custom version of pytest by modifying this setting to include the full path.
  177.   "python.unitTest.pyTestPath": "py.test",
  178.  
  179.   // Arguments passed in. Each argument is a separate item in the array.
  180.   "python.unitTest.nosetestArgs": [],
  181.  
  182.   // Arguments passed in. Each argument is a separate item in the array.
  183.   "python.unitTest.pyTestArgs": [],
  184.  
  185.   // Whether to enable or disable unit testing using unittest.
  186.   "python.unitTest.unittestEnabled": false,
  187.  
  188.   // Arguments passed in. Each argument is a separate item in the array.
  189.   "python.unitTest.unittestArgs": [
  190.     "-v",
  191.     "-s",
  192.     ".",
  193.     "-p",
  194.     "*test*.py"
  195.   ],
  196.  
  197.   // Patterns used to exclude files or folders from being linted.
  198.   "python.linting.ignorePatterns": [
  199.     ".vscode/*.py",
  200.     "**/site-packages/**/*.py"
  201.   ],
  202.  
  203.   // Whether to lint Python files using pylama.
  204.   "python.linting.pylamaEnabled": false,
  205.  
  206.   // Path to pylama, you can use a custom version of pylama by modifying this setting to include the full path.
  207.   "python.linting.pylamaPath": "pylama",
  208.  
  209.   // Arguments passed in. Each argument is a separate item in the array.
  210.   "python.linting.pylamaArgs": [],
  211.  
  212.   // The output window name for the unit test messages, defaults to Python output window.
  213.   "python.unitTest.outputWindow": "Python Test Log",
  214.  
  215.   // When executing a file in the terminal, whether to use execute in the file's directory, instead of the current open folder.
  216.   "python.terminal.executeInFileDir": false,
  217.  
  218.   // Python launch arguments to use when executing a file in the terminal.
  219.   "python.terminal.launchArgs": [],
  220.  
  221.   // Whether to appen the results to results window, else clear and display.
  222.   "python.jupyter.appendResults": true,
  223.  
  224.   // Default kernel to be used. By default the first available kernel is used.
  225.   "python.jupyter.defaultKernel": "",
  226.  
  227.   // Code executed when the kernel starts. Such as the default of '%matplotlib inline'. Individual lines can be placed in separate items of the array.
  228.   "python.jupyter.startupCode": [
  229.     "%matplotlib inline"
  230.   ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement