Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
python-version: '3.13'
- name: Install deps
run: |
pip install yamllint yamlfix
pip install yamllint
- name: Add yamllint annotator
uses: pr-annotators/yamllint-pr-annotator@v1.0.0
- name: Run yamllint
run: |-
yamllint -f parsable TranslatorReasonerAPI.yaml
format_check:
name: Check Yamlfix
name: Check Yamlfmt
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
Expand All @@ -41,10 +41,10 @@ jobs:
python-version: '3.13'
- name: Install deps
run: |
pip install yamllint yamlfix
- name: Run yamlfix
pip install google-yamlfmt
- name: Run yamlfmt
run: |-
yamlfix TranslatorReasonerAPI.yaml
yamlfmt TranslatorReasonerAPI.yaml
- name: Verify no format changes
uses: tj-actions/verify-changed-files@v20.0.4
id: verify-changed-files
Expand Down
2 changes: 0 additions & 2 deletions .yamlfix.toml

This file was deleted.

6 changes: 6 additions & 0 deletions .yamlfmt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
formatter:
type: basic
include_document_start: true
trim_trailing_whitespace: true # Prevents weird multiline block squashing
scan_folded_as_literal: true # Prevents folded style (>-) multiline blocks from being squashed
2 changes: 2 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ rules:
quoted-strings:
quote-type: single
required: only-when-needed
extra-allowed:
- "^.*:.*$"
7 changes: 4 additions & 3 deletions TranslatorReasonerAPI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,8 @@ components:
- nodes
QNode:
type: object
description: A node in the QueryGraph used to represent an entity in a
description: >-
A node in the QueryGraph used to represent an entity in a
query. If no CURIEs are not specified, any nodes matching the category
of the QNode will be returned in the Results.
properties:
Expand All @@ -863,7 +864,7 @@ components:
$ref: '#/components/schemas/CURIE'
minItems: 1
examples:
- [OMIM:603903]
- ['OMIM:603903']
description: >-
A list of one or more CURIE identifiers for this node.
The 'ids' property will hold a list of CURIEs only in the case of
Expand Down Expand Up @@ -1747,7 +1748,7 @@ components:
retrieved from both the automat-mychem-info and molepro KPs,
which both provided it with records of this single fact.
examples:
- [infores:automat-mychem-info, infores:molepro]
- ['infores:automat-mychem-info', 'infores:molepro']
source_record_urls:
type: array
minItems: 1
Expand Down
Loading
Loading