Skip to content

Instantly share code, notes, and snippets.

@martimors
Created March 31, 2022 08:43
Show Gist options
  • Save martimors/ad84b30d60fb16b26f688753e7dde93b to your computer and use it in GitHub Desktop.
Save martimors/ad84b30d60fb16b26f688753e7dde93b to your computer and use it in GitHub Desktop.
pyproject.toml settings for common linters and formatters
[tool.black]
line-length = 100
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.mypy_cache
| \.tox
| \.venv
| venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 100
[tool.mypy]
pretty = true
warn_unused_ignores = true
warn_return_any = true
[tool.pydocstyle]
convention = "google"
add-ignore = "D100,D104,D101"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment