diff --git a/.vscode/settings.json b/.vscode/settings.json index 90d62ac5f3..d17cb5be26 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -26,7 +26,7 @@ "python.linting.flake8Args": [ "--ignore=E501,W503" ], - "python.linting.flake8Enabled": true, + "python.linting.flake8Enabled": false, "python.linting.mypyCategorySeverity.error": "Warning", "python.linting.mypyEnabled": true, "python.linting.pylintEnabled": true, @@ -41,5 +41,11 @@ ], "yaml.format.enable": false, "yaml.validate": true, - "evenBetterToml.formatter.alignComments": false + "evenBetterToml.formatter.alignComments": false, + "[python]": { + "editor.codeActionsOnSave": { + "source.organizeImports": true, + "source.fixAll": true + } + } } diff --git a/pyproject.toml b/pyproject.toml index 36631fdb64..3ad38f069d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,9 +112,9 @@ exclude = "(build|dist|test/local-content|site-packages|~/.pyenv|examples/playbo module = [ "ansible.*", "yamllint.*", - "ansiblelint._version", + "ansiblelint._version", # generated "ruamel.yaml", - "spdx.*" + "spdx.*", ] ignore_missing_imports = true ignore_errors = true