From 8b41c575db4377b500aba94a2918bbe74a163108 Mon Sep 17 00:00:00 2001 From: Daniel Gallagher Date: Fri, 23 Jun 2017 10:44:10 -0700 Subject: [PATCH] cp .pre-commit-hooks.yaml hooks.yaml --- .gitignore | 1 + hooks.yaml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 2626934..6fdf044 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.iml *.py[co] .*.sw[a-z] +.cache .coverage .idea .project diff --git a/hooks.yaml b/hooks.yaml index bda3f76..d501d50 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -105,6 +105,12 @@ entry: end-of-file-fixer language: python files: \.(asciidoc|adoc|coffee|cpp|css|c|ejs|erb|groovy|h|haml|hh|hpp|hxx|html|in|j2|jade|json|js|less|markdown|md|ml|mli|pp|py|rb|rs|R|scala|scss|sh|slim|tex|tmpl|ts|txt|yaml|yml)$ +- id: file-contents-sorter + name: File Contents Sorter + description: Sort the lines in specified files (defaults to alphabetical). You must provide list of target files as input in your .pre-commit-config.yaml file. + entry: file-contents-sorter + language: python + files: '' - id: fix-encoding-pragma name: Fix python encoding pragma language: python