Skip to content

Instantly share code, notes, and snippets.

@bendog
Last active April 2, 2020 07:31
Show Gist options
  • Save bendog/1e3500f53beba7f0ff8431895fed55b1 to your computer and use it in GitHub Desktop.
Save bendog/1e3500f53beba7f0ff8431895fed55b1 to your computer and use it in GitHub Desktop.
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