From 04782a28188068a3f0e4a5cef3cf595c5e92cb81 Mon Sep 17 00:00:00 2001 From: Daniel Gallagher <daniellg@yelp.com> Date: Fri, 6 Jul 2018 11:10:41 -0700 Subject: [PATCH] Add black formatter pre-commit hook and remove isort (since black also sorts imports) --- .pre-commit-config.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dce35cd0..37777846 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,11 +22,8 @@ repos: rev: v1.2.0 hooks: - id: pyupgrade -- repo: https://github.com/asottile/seed-isort-config - rev: v1.0.1 +- repo: https://github.com/ambv/black + rev: stable hooks: - - id: seed-isort-config -- repo: https://github.com/pre-commit/mirrors-isort - rev: v4.3.4 - hooks: - - id: isort + - id: black + language_version: python3.6