From 46993d5f2d0fade3d132b0d55134849c92b1c2b1 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Sat, 14 May 2016 21:59:08 -0300 Subject: [PATCH] Adding pre-commit hooks #259 --- .pre-commit-config.yaml | 5 +++++ requirements-dev.txt | 1 + 2 files changed, 6 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..39b1d50e8 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +- repo: git://github.com/pre-commit/mirrors-yapf + sha: 'v0.7.1' + hooks: + - id: yapf + args: [-i, -r tests telegram] diff --git a/requirements-dev.txt b/requirements-dev.txt index 720498d84..8f82b7968 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,3 +5,4 @@ pylint unittest2 flaky yapf +pre-commit