{
"python.linting.flake8Enabled": true,
"python.linting.enabled": true
}
pip install black
"editor.formatOnSave": true,
"python.formatting.provider": "black"
{
"python.linting.flake8Enabled": true,
"python.linting.enabled": true,
"editor.formatOnSave": true,
"python.formatting.provider": "black",
}
[tool.black]
line-length = 112
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
참고 :
1. https://www.daleseo.com/python-black/
2. https://cereblanco.medium.com/setup-black-and-isort-in-vscode-514804590bf9