Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 443b62d

Browse files
committed
Add yaml hook.
1 parent 3cfc49b commit 443b62d

3 files changed

Lines changed: 14 additions & 11 deletions

File tree

.pre-commit-config.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
- repo: [email protected]:pre-commit/pre-commit-hooks
2-
sha: bec87f6c87284ea15dbcf7801810404c8036bab4
2+
sha: 84fbf05803f25fea2ad4a9509b3666840bf580b4
33
hooks:
4-
- id: pyflakes
5-
files: \.py$
6-
- id: debug-statements
7-
files: \.py$
84
- id: trailing-whitespace
95
files: \.(py|sh|yaml)$
10-
- id: name-tests-test
11-
files: tests/.+\.py$
126
- id: end-of-file-fixer
137
files: \.(py|sh|yaml)$
8+
- id: check-yaml
9+
files: \.(yaml|yml)$
10+
- id: debug-statements
11+
files: \.py$
12+
- id: name-tests-test
13+
files: tests/.+\.py$
14+
- id: pyflakes
15+
files: \.py$
1416
- repo: [email protected]:pre-commit/pre-commit
15-
sha: c62c1a3b513ab9e057e85a5e950bd7c438371076
17+
sha: 3cfc49b522dee27cdcce83781cd874c5638ad6c1
1618
hooks:
17-
- id: validate_manifest
18-
files: ^hooks.yaml$
1919
- id: validate_config
2020
files: ^\.pre-commit-config.yaml$
21+
- id: validate_manifest
22+
files: ^hooks.yaml$
23+
exclude: ^$
File renamed without changes.

tests/clientlib/validate_base_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_raises_for_non_existent_file(noop_validator):
3939

4040
def test_raises_for_invalid_yaml_file(noop_validator):
4141
with pytest.raises(ValueError):
42-
noop_validator(get_resource_path('non_parseable_yaml_file.yaml'))
42+
noop_validator(get_resource_path('non_parseable_yaml_file.notyaml'))
4343

4444

4545
def test_raises_for_failing_schema(array_validator):

0 commit comments

Comments
 (0)