From 302031b4e3db069093d8912ee742f74322035cc0 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Fri, 15 Mar 2019 12:11:05 +0100 Subject: [PATCH] Unified black conf --- .gitlab-ci.yml | 2 +- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bbe1bd02f..58d3e5c77 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -114,7 +114,7 @@ black: before_script: - pip install black script: - - black --exclude "/(\.git|\.hg|\.mypy_cache|\.tox|\.venv|_build|buck-out|build|dist|migrations)/" --check --diff api/ + - black --check --diff api/ flake8: image: python:3.6 diff --git a/pyproject.toml b/pyproject.toml index 68682d243..21dd7c106 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,3 +41,6 @@ directory = "misc" name = "Other" showcontent = true + +[tool.black] + exclude = "(.git|.hg|.mypy_cache|.tox|.venv|_build|buck-out|build|dist|migrations)"