Skip to content
GitLab
Explore
Sign in
dbnomics-fetchers
documentation
Wiki
Code style
Code style
· Changes
Page history
add vscode config to coding styles
authored
Nov 21, 2018
by
Bruno Duyé
Show whitespace changes
Inline
Side-by-side
Code-style.md
View page @
db382c6d
...
@@ -17,3 +17,27 @@ For each project (fetcher, API, data-model, etc.), configure your editor to call
...
@@ -17,3 +17,27 @@ For each project (fetcher, API, data-model, etc.), configure your editor to call
]
]
}
}
```
```
### autopep8 config
To make autopep8 (auto formatting Python code tool) coherent with Pylint settings, you can add these line to VScode settings:
```
json
{
"python.formatting.autopep8Args"
:
[
"--max-line-length=120"
]
}
```
### VScode config
VScode can also visually indicates the max line length by adding in settings:
```
json
"[python]"
:
{
"editor.rulers"
:
[
120
]
}
,
```
\ No newline at end of file