Skip to content

Instantly share code, notes, and snippets.

@bendog
Last active Apr 2, 2020
Embed
What would you like to do?
black rules for django projects
[tool.black]
line-length = 120
target_version = ['py37']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| migrations
)
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment