[meld/precommit: 5/11] Add initial pre-commit config



commit fd5b15b386d1c176b94ef8a2cef51c1845e5e8ae
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Sep 29 12:25:50 2019 +1000

    Add initial pre-commit config
    
    See https://pre-commit.com/

 .pre-commit-config.yaml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
---
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 00000000..58f046c2
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,32 @@
+default_language_version:
+    python: python3.7
+
+repos:
+
+-   repo: meta
+    hooks:
+    -   id: check-hooks-apply
+    -   id: check-useless-excludes
+
+-   repo: https://github.com/pre-commit/pre-commit-hooks.git
+    rev: v2.3.0
+    hooks:
+    -   id: check-added-large-files
+    -   id: check-docstring-first
+    -   id: check-xml
+    -   id: check-yaml
+    -   id: debug-statements
+    -   id: end-of-file-fixer
+    -   id: mixed-line-ending
+    -   id: pretty-format-json
+        args: [--no-sort-keys, --indent=2]
+    -   id: trailing-whitespace
+
+-   repo: https://gitlab.com/pycqa/flake8
+    rev: 3.7.5
+    hooks:
+    -   id: flake8
+        additional_dependencies:
+          - flake8-import-order
+          - pep8-naming
+          - pycodestyle


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]