]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Add pre-commit.
authorLukas Balaga <lukas.balaga@gmail.com>
Sun, 28 Feb 2016 00:30:48 +0000 (16:30 -0800)
committerLukas Balaga <lukas.balaga@gmail.com>
Sun, 28 Feb 2016 00:30:48 +0000 (16:30 -0800)
.pre-commit-config.yaml [new file with mode: 0644]
tox.ini

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644 (file)
index 0000000..2598b51
--- /dev/null
@@ -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 6f552d8b02de03daeeb41690c3ce6082e69dc779..0fa957a737fd648cf291efc221809dd9d3148b21 100644 (file)
--- 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