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