diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index f7e35d4..bda3f76 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -129,6 +129,12 @@ entry: name-tests-test language: python files: tests/.+\.py$ +- id: no-commit-to-branch + name: "Don't commit to branch" + entry: no-commit-to-branch + language: python + files: .* + always_run: true - id: pyflakes name: Pyflakes (DEPRECATED, use flake8) description: This hook runs pyflakes. (This is deprecated, use flake8). @@ -147,9 +153,3 @@ entry: trailing-whitespace-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: no-commit-to-branch - name: Dont commit to branch - entry: no-commit-to-branch - language: python - files: .* - always_run: true diff --git a/hooks.yaml b/hooks.yaml index f7e35d4..bda3f76 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -129,6 +129,12 @@ entry: name-tests-test language: python files: tests/.+\.py$ +- id: no-commit-to-branch + name: "Don't commit to branch" + entry: no-commit-to-branch + language: python + files: .* + always_run: true - id: pyflakes name: Pyflakes (DEPRECATED, use flake8) description: This hook runs pyflakes. (This is deprecated, use flake8). @@ -147,9 +153,3 @@ entry: trailing-whitespace-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: no-commit-to-branch - name: Dont commit to branch - entry: no-commit-to-branch - language: python - files: .* - always_run: true