1
0
mirror of https://github.com/TencentARC/GFPGAN.git synced 2025-05-15 14:50:11 -07:00

add vscode format setting

This commit is contained in:
Xintao 2021-08-18 10:21:26 +08:00
parent 250b75c364
commit 3da90f924e
2 changed files with 19 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,7 +7,6 @@ wandb/*
tmp/*
version.py
.vscode
# Byte-compiled / optimized / DLL files
__pycache__/

19
.vscode/settings.json vendored Normal file
View File

@ -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"
],
}