Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add black config - skip popular cache dirs

Krzysztof Wolski1265bffe4ecc
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000000..767e961e85
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,26 @@
+[tool.black]
+target_version = ['py35', 'py36', 'py37', 'py38']
+include = '\.pyi?$'
+exclude = '''
+/(\.git/
+ |\.eggs
+ |\.hg
+ |__pycache__
+ |\.cache
+ |\.ipynb_checkpoints
+ |\.mypy_cache
+ |\.pytest_cache
+ |\.tox
+ |\.venv
+ |node_modules
+ |_build
+ |buck-out
+ |build
+ |dist
+ |media
+ |infrastructure
+ |templates
+ |locale
+ |docs
+)/
+'''