|
61 | 61 | "python.linting.pylintEnabled": true,
|
62 | 62 | "python.linting.pylintCategorySeverity.convention": "Warning",
|
63 | 63 | "python.linting.pylintCategorySeverity.refactor": "Warning",
|
64 |
| - "python.linting.flake8Enabled": true, |
65 |
| - // builtins |
66 |
| - "python.linting.flake8CategorySeverity.A": "Warning", |
67 |
| - // mccabe & class attributes order |
68 |
| - "python.linting.flake8CategorySeverity.C": "Warning", |
69 |
| - // pycodestyles |
70 |
| - "python.linting.flake8CategorySeverity.E": "Warning", |
71 |
| - // Pyflakes |
72 |
| - "python.linting.flake8CategorySeverity.F": "Warning", |
73 |
| - // PEP8 Naming convention |
74 |
| - "python.linting.flake8CategorySeverity.N": "Warning", |
75 |
| - // Simplify |
76 |
| - "python.linting.flake8CategorySeverity.S": "Warning", |
77 |
| - // PYI |
78 |
| - "python.linting.flake8CategorySeverity.Y": "Warning", |
79 |
| - // Below doesn't work yet https://github.com/microsoft/vscode-python/issues/1438 & https://github.com/microsoft/vscode-python/issues/18261 |
80 |
| - "python.linting.flake8CategorySeverity.CCE": "Warning", |
81 |
| - "python.linting.flake8CategorySeverity.SIM": "Warning", |
82 |
| - "python.linting.flake8CategorySeverity.SIM9": "Information", |
| 64 | + "flake8.severity": { |
| 65 | + "convention": "Warning", |
| 66 | + "error": "Error", |
| 67 | + "fatal": "Error", |
| 68 | + "refactor": "Warning", |
| 69 | + "warning": "Warning", |
| 70 | + "info": "Warning", |
| 71 | + // builtins |
| 72 | + "A": "Warning", |
| 73 | + // mccabe |
| 74 | + "C": "Warning", |
| 75 | + // class attributes order |
| 76 | + "CCE": "Warning", |
| 77 | + // pycodestyles |
| 78 | + "E": "Warning", |
| 79 | + "E9": "Error", // Runtime |
| 80 | + "W": "Warning", |
| 81 | + // Pyflakes |
| 82 | + "F": "Warning", |
| 83 | + // PEP8 Naming convention |
| 84 | + "N": "Warning", |
| 85 | + // Simplify |
| 86 | + "SIM": "Warning", |
| 87 | + "SIM9": "Information", |
| 88 | + // PYI |
| 89 | + "Y": "Warning", |
| 90 | + }, |
83 | 91 | // PyRight obsoletes mypy
|
84 | 92 | "python.linting.mypyEnabled": false,
|
85 | 93 | // Is already wrapped by Flake8, prospector and pylama
|
|
0 commit comments