From 3da90f924e562403f10a49cdae5dae05ed427bfa Mon Sep 17 00:00:00 2001 From: Xintao Date: Wed, 18 Aug 2021 10:21:26 +0800 Subject: [PATCH] add vscode format setting --- .gitignore | 1 - .vscode/settings.json | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 0200900..8151890 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ wandb/* tmp/* version.py -.vscode # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b126355 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,19 @@ +{ + "files.trimTrailingWhitespace": true, + "editor.wordWrap": "on", + "editor.rulers": [ + 80, + 120 + ], + "editor.renderWhitespace": "all", + "editor.renderControlCharacters": true, + "python.formatting.provider": "yapf", + "python.formatting.yapfArgs": [ + "--style", + "{BASED_ON_STYLE = pep8, BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true, SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN = true, COLUMN_LIMIT = 120}" + ], + "python.linting.flake8Enabled": true, + "python.linting.flake8Args": [ + "max-line-length=120" + ], +}