From 42c2925f9d80e265ef2c7bae36dafe7c53c66e2f Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Fri, 8 Feb 2019 14:09:08 -0800 Subject: [PATCH] Activate black precommit --- .pre-commit-config.yaml | 6 ++++++ pyproject.toml | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 pyproject.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..b9a75aff --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: +- repo: https://github.com/ambv/black + rev: stable + hooks: + - id: black + language_version: python3.6 diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..c5a9a06d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,22 @@ +[tool.black] +line-length = 88 +py36 = true +skip-string-normalization = true +include = '\.pyi?$' +exclude = ''' +/( + \.eggs + | \.git + | \.hg + | \.mypy_cache + | \.tox + | \.venv + | _build + | buck-out + | build + | dist + | docs + | misc + | \.egg-info +)/ +'''