|
@@ -1,15 +1,25 @@
|
|
|
{
|
|
|
+ "autopep8.args": ["--max-line-length=120"],
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
|
"editor.formatOnSave": true,
|
|
|
"isort.args": ["--line-length", "120"],
|
|
|
"prettier.printWidth": 120,
|
|
|
- "python.formatting.provider": "autopep8",
|
|
|
- "python.formatting.autopep8Args": ["--max-line-length=120", "--experimental"],
|
|
|
+ "pylint.args": [
|
|
|
+ "--disable=C0103", // Invalid name (e.g., variable/function/class naming conventions)
|
|
|
+ "--disable=C0111", // Missing docstring (in function/class/method)
|
|
|
+ "--disable=C0301", // Line too long (exceeds character limit)
|
|
|
+ "--disable=R0902", // Too many public methods
|
|
|
+ "--disable=R0904", // Too many public methods
|
|
|
+ "--disable=W0102", // Dangerous default value as argument
|
|
|
+ "--disable=W0718", // Catching too general exception
|
|
|
+ "--disable=W1203", // Use % formatting in logging functions
|
|
|
+ "--disable=W1514" // Using open without explicitly specifying an encoding
|
|
|
+ ],
|
|
|
"python.testing.pytestArgs": ["."],
|
|
|
"python.testing.pytestEnabled": true,
|
|
|
"python.testing.unittestEnabled": false,
|
|
|
"[python]": {
|
|
|
- "editor.defaultFormatter": "ms-python.python",
|
|
|
+ "editor.defaultFormatter": "ms-python.autopep8",
|
|
|
"editor.codeActionsOnSave": {
|
|
|
"source.organizeImports": true
|
|
|
}
|