From: Lukas Balaga Date: Sun, 28 Feb 2016 00:30:48 +0000 (-0800) Subject: Add pre-commit. X-Git-Tag: 2.3.1~9^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da4f5e818417e94858c643be531f7a388bacf200;p=thirdparty%2Fbabel.git Add pre-commit. --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..2598b511 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +- repo: https://github.com/pre-commit/pre-commit-hooks + sha: 97b88d9610bcc03982ddac33caba98bb2b751f5f + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: autopep8-wrapper + exclude: (tests/messages/data/) + - id: check-docstring-first + - id: check-json + - id: check-added-large-files + - id: check-yaml + - id: debug-statements + - id: name-tests-test + args: ['--django'] + exclude: (tests/messages/data/) + - id: requirements-txt-fixer diff --git a/tox.ini b/tox.ini index 6f552d8b..0fa957a7 100644 --- a/tox.ini +++ b/tox.ini @@ -7,3 +7,9 @@ deps = cdecimal: m3-cdecimal whitelist_externals = make commands = make clean-cldr test + +[pep8] +ignore = E501,E731 + +[flake8] +ignore = E501,E731