initial commit
This commit is contained in:
7
.vscode/extensions.json
vendored
Normal file
7
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"editorconfig.editorconfig",
|
||||
"ms-python.vscode-pylance",
|
||||
"ms-python.python"
|
||||
]
|
||||
}
|
||||
16
.vscode/launch.json
vendored
Normal file
16
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Python: Current File",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": false
|
||||
}
|
||||
]
|
||||
}
|
||||
39
.vscode/settings.json
vendored
Normal file
39
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"files.exclude": {
|
||||
"env/": true,
|
||||
".mypy_cache/": true
|
||||
},
|
||||
"python.formatting.provider": "black",
|
||||
"python.terminal.activateEnvironment": true,
|
||||
"python.pipenvPath": "pipenv",
|
||||
"python.linting.pylintEnabled": true,
|
||||
"python.linting.mypyEnabled": true,
|
||||
"python.linting.mypyArgs": [
|
||||
"--follow-imports=silent",
|
||||
"--ignore-missing-imports",
|
||||
"--show-column-numbers",
|
||||
"--no-pretty",
|
||||
"--disallow-untyped-defs",
|
||||
"--disallow-untyped-calls"
|
||||
],
|
||||
"python.analysis.typeCheckingMode": "basic",
|
||||
"python.sortImports.args": ["--settings-path=${workspaceFolder}"],
|
||||
"[python]": {
|
||||
"editor.formatOnPaste": false,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnSaveMode": "file",
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.organizeImports": true
|
||||
}
|
||||
},
|
||||
"runOnSave.statusMessageTimeout": 3000,
|
||||
"runOnSave.commands": [
|
||||
{
|
||||
"match": ".*\\.py$",
|
||||
"command": "poetry run autoflake -i --remove-all-unused-imports --remove-unused-variables ${file}",
|
||||
"runIn": "backend", // backend, terminal or vscode. backend needs a globally installed autoflake.
|
||||
"runningStatusMessage": "Removing unused imports and variables in ${fileBasename}",
|
||||
"finishStatusMessage": "${fileBasename} cleaned. 🍰 ✨"
|
||||
}
|
||||
]
|
||||
}
|
||||
26
.vscode/tasks.json
vendored
Normal file
26
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "autoflake",
|
||||
"type": "process",
|
||||
"command": "poetry",
|
||||
"args": [
|
||||
"run",
|
||||
"autoflake",
|
||||
"-i",
|
||||
"--remove-all-unused-imports",
|
||||
"--remove-unused-variables",
|
||||
"${file}"
|
||||
],
|
||||
"presentation": {
|
||||
"reveal": "silent",
|
||||
"panel": "shared",
|
||||
"showReuseMessage": false
|
||||
},
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user