Skip to content

Commit 665e57d

Browse files
Merge pull request #416 from vladistan/fix-ignore-yaml
Fix incorrect YAML encoding, ignore intentionally corrupted files
2 parents 2dc5048 + f9f8eeb commit 665e57d

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ repos:
99
- id: end-of-file-fixer
1010
exclude: __snapshots__
1111
- id: check-yaml
12+
exclude: test_utils/input/yaml
1213
- id: check-toml
1314
- id: trailing-whitespace
1415
- repo: https://github.com/astral-sh/ruff-pre-commit

tests/test_utils/input/rules-example.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ classes:
195195
- postconditions:
196196
none_of:
197197
- title: IPI should not be used with GO:0003824 catalytic activity or descendents
198-
see_also: [GORULE:0000007]
198+
see_also:
199+
- GORULE:0000007
199200
#exact_mappings: [GORULE:0000007]
200201
all_of:
201202
- slot_conditions:
@@ -205,7 +206,8 @@ classes:
205206
has_member:
206207
equals_string: GO:0003824
207208
- title: No annotations should be made to uninformative high level terms
208-
see_also: [GORULE:0000008]
209+
see_also:
210+
- GORULE:0000008
209211
any_of:
210212
- slot_conditions:
211213
term_subsets:
@@ -219,13 +221,17 @@ classes:
219221
none_of:
220222
- equals_string_in: [IEA, ISS, ISO, IBA]
221223
- title: ND evidence code should be to root nodes only, and no terms other than root nodes can have the evidence code ND
222-
see_also: [GORULE:0000011]
224+
see_also:
225+
- GORULE:0000011
223226
slot_conditions:
224227
evidence_type:
225228
equals_string: ND
226229
term:
227230
none_of:
228-
- equals_string_in: [GO:0008150, GO:0003674, GO:0005575]
231+
- equals_string_in:
232+
- GO:0008150
233+
- GO:0003674
234+
- GO:0005575
229235

230236

231237
#==================================

0 commit comments

Comments
 (0)