My Personal Blog

Home

Adding flake8 and pylint settings to vscode

Feb. 9, 2024 | Categories: dev TIL

I am experimenting with using the black formatter in conjunction with flake8 and pylint in vscode. One common issue I have encountered is that they disagree on line lengths. Based on these recommendations for black and pylint, I updated my vscode settings.json as follows:


{
...
"flake8.args": [
"--max-line-length=88",
"--extend-ignore=E203"
],
"pylint.args": [
"--disable=C0330, C0326",
"--max-line-length=88"
]
}

This largely reduces the amount of line length problems with flake8 and pylint.

Leave a comment:

Comments: