Skip to content

Instantly share code, notes, and snippets.

@zerolab
Created August 7, 2020 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zerolab/f7a40156fe50a229947e123a7152fed4 to your computer and use it in GitHub Desktop.
Save zerolab/f7a40156fe50a229947e123a7152fed4 to your computer and use it in GitHub Desktop.
Example black config with excludes for the migrations directory
[tool.black]
line-length = 120
target-version = ['py38']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.mypy_cache
| \.tox
| \.venv
| __pycache__
| _build
| build
| dist
| docs
| venv
| migrations\/*
)/
)
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment