Slide 114
Slide 114 text
114
Как выглядит конфигурация?
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--line-length=120",
],
"[python]": {
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
},
},
"ruff.args": [
"--line-length=120",
"--ignore=I,EM,FBT,TRY003,S101,D101,D102,D103,D104,D105,G004,D107,FA102",
"--fixable=ALL",
"--select=ALL"
],
"emeraldwalk.runonsave": {
"commands": [
{
"match": ".py",
"cmd": "isort --line-length 120 --lines-after-imports 2 --no-lines-before stdlib,localfolder ${file}",
"isAsync": true,
}
]
}