Add formatting

This commit is contained in:
jld3103 2021-08-08 13:07:59 +02:00
parent 97598cd597
commit 8b943a903a
3 changed files with 25 additions and 0 deletions

7
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,7 @@
{
"python.linting.enabled": true,
"python.linting.pylintPath": "pylint",
"editor.formatOnSave": true,
"python.formatting.provider": "yapf",
"python.linting.pylintEnabled": true,
}

15
format.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
yapf \
--recursive \
--in-place \
--parallel \
.
autoflake \
--recursive \
--in-place \
--remove-unused-variables \
--remove-all-unused-imports \
--expand-star-imports \
--remove-duplicate-keys \
.

3
setup.cfg Normal file
View file

@ -0,0 +1,3 @@
[yapf]
BASED_ON_STYLE = google
COLUMN_LIMIT = 150