Skip to content

Commit

Permalink
Improve code formatting on save with vscode (#3340)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Apr 24, 2023
1 parent a6f74a6 commit 2cb73c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
}
}
}
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cb73c6

Please sign in to comment.