diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1bffc6a9..989777da 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,20 +1,23 @@ - repo: git@github.com:pre-commit/pre-commit-hooks - sha: bec87f6c87284ea15dbcf7801810404c8036bab4 + sha: 84fbf05803f25fea2ad4a9509b3666840bf580b4 hooks: - - id: pyflakes - files: \.py$ - - id: debug-statements - files: \.py$ - id: trailing-whitespace files: \.(py|sh|yaml)$ - - id: name-tests-test - files: tests/.+\.py$ - id: end-of-file-fixer files: \.(py|sh|yaml)$ + - id: check-yaml + files: \.(yaml|yml)$ + - id: debug-statements + files: \.py$ + - id: name-tests-test + files: tests/.+\.py$ + - id: pyflakes + files: \.py$ - repo: git@github.com:pre-commit/pre-commit - sha: c62c1a3b513ab9e057e85a5e950bd7c438371076 + sha: 3cfc49b522dee27cdcce83781cd874c5638ad6c1 hooks: - - id: validate_manifest - files: ^hooks.yaml$ - id: validate_config files: ^\.pre-commit-config.yaml$ + - id: validate_manifest + files: ^hooks.yaml$ + exclude: ^$ diff --git a/testing/resources/non_parseable_yaml_file.yaml b/testing/resources/non_parseable_yaml_file.notyaml similarity index 100% rename from testing/resources/non_parseable_yaml_file.yaml rename to testing/resources/non_parseable_yaml_file.notyaml diff --git a/tests/clientlib/validate_base_test.py b/tests/clientlib/validate_base_test.py index 76b0eb57..4957457d 100644 --- a/tests/clientlib/validate_base_test.py +++ b/tests/clientlib/validate_base_test.py @@ -39,7 +39,7 @@ def test_raises_for_non_existent_file(noop_validator): def test_raises_for_invalid_yaml_file(noop_validator): with pytest.raises(ValueError): - noop_validator(get_resource_path('non_parseable_yaml_file.yaml')) + noop_validator(get_resource_path('non_parseable_yaml_file.notyaml')) def test_raises_for_failing_schema(array_validator):