From c8f19eb2e5b8b51dcb26cf8e3dc0117f9ecbf9d1 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 25 May 2015 15:50:51 -0700 Subject: [PATCH] Remove example_*, the docs do a better job. --- example_hooks.yaml | 27 ----------------------- example_pre-commit-config.yaml | 6 ----- tests/clientlib/validate_config_test.py | 1 - tests/clientlib/validate_manifest_test.py | 1 - 4 files changed, 35 deletions(-) delete mode 100644 example_hooks.yaml delete mode 100644 example_pre-commit-config.yaml diff --git a/example_hooks.yaml b/example_hooks.yaml deleted file mode 100644 index 4706cfe8..00000000 --- a/example_hooks.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# Hooks are set up as follows -# - id: hook_id -# name: 'Readable name' -# entry: my_hook_executable -# -# # Optional -# description: 'Longer description of the hook' -# -# # Optional, for now 'python[optional version]', 'ruby #.#.#', 'node' -# language: 'python' -# -# # Optional, defaults to zero -# expected_return_value: 0 - -- id: my_hook - name: My Simple Hook - description: This is my simple hook that does blah - entry: my-simple-hook - language: python - files: \.py$ -- id: my_grep_based_hook - name: My Bash Based Hook - description: This is a hook that uses grep to validate some stuff - entry: ./my_grep_based_hook.sh - language: script - files: \.(py|sh)$ - expected_return_value: 1 diff --git a/example_pre-commit-config.yaml b/example_pre-commit-config.yaml deleted file mode 100644 index cb72d885..00000000 --- a/example_pre-commit-config.yaml +++ /dev/null @@ -1,6 +0,0 @@ -- repo: git@github.com:pre-commit/pre-commit-hooks - sha: cd74dc150c142c3be70b24eaf0b02cae9d235f37 - hooks: - - id: pyflakes - - id: jslint - - id: trim_trailing_whitespace diff --git a/tests/clientlib/validate_config_test.py b/tests/clientlib/validate_config_test.py index b474f1ba..5631adbc 100644 --- a/tests/clientlib/validate_config_test.py +++ b/tests/clientlib/validate_config_test.py @@ -15,7 +15,6 @@ from testing.util import is_valid_according_to_schema @pytest.mark.parametrize( ('input', 'expected_output'), ( - (['example_pre-commit-config.yaml'], 0), (['.pre-commit-config.yaml'], 0), (['non_existent_file.yaml'], 1), ([get_resource_path('valid_yaml_but_invalid_config.yaml')], 1), diff --git a/tests/clientlib/validate_manifest_test.py b/tests/clientlib/validate_manifest_test.py index 937f4329..d847cab3 100644 --- a/tests/clientlib/validate_manifest_test.py +++ b/tests/clientlib/validate_manifest_test.py @@ -13,7 +13,6 @@ from testing.util import is_valid_according_to_schema @pytest.mark.parametrize( ('input', 'expected_output'), ( - (['example_hooks.yaml'], 0), (['hooks.yaml'], 0), (['non_existent_file.yaml'], 1), ([get_resource_path('valid_yaml_but_invalid_manifest.yaml')], 1),