Add formatting
This commit is contained in:
parent
97598cd597
commit
8b943a903a
3 changed files with 25 additions and 0 deletions
7
.vscode/settings.json
vendored
Normal file
7
.vscode/settings.json
vendored
Normal 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
15
format.sh
Executable 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
3
setup.cfg
Normal file
|
@ -0,0 +1,3 @@
|
|||
[yapf]
|
||||
BASED_ON_STYLE = google
|
||||
COLUMN_LIMIT = 150
|
Loading…
Add table
Add a link
Reference in a new issue