From b9d69c4d5408ee3d55ee113018758d7b00287a8b Mon Sep 17 00:00:00 2001 From: Xintao Date: Sun, 29 Aug 2021 10:56:55 +0800 Subject: [PATCH] add .vscode settings --- .gitignore | 2 +- .vscode/settings.json | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index b6c4e54..63d1c27 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.vscode +datasets/* # 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" + ], +}