Skip to content
Open
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
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
push:
branches:
- develop
- main
- feature/lint
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- develop
jobs:
lint:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Run the linter on the dataset
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install prereqs
working-directory: lint
run: pip install -r requirements.txt
- name: Run linter
working-directory: lint
run: python lint.py

28 changes: 28 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
branches:
- develop
- main
- feature/lint
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- develop
jobs:
lint:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Run cspell on the dataset using our saved dictionary of ignore words
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install cspell
working-directory: lint
run: npm install -g cspell
- name: Run spellcheck
working-directory: lint
run: cspell ../data/**/*.yaml

6 changes: 6 additions & 0 deletions lint/cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"dictionaries": ["en_us", "ids"],
"dictionaryDefinitions": [
{"name": "ids", "path": "./ids.txt"}
]
}
21 changes: 21 additions & 0 deletions lint/equip.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
map(include("equip"))
---
equip:
name: str()
description: str(required=False)
short_name: str(required=False)
haystack: include("haystack")
extends: str(required=False)
is_base: bool(required=False)
contains: list(str(), required=False)
attributes: list(str(), required=False)
points: list(str(), required=False)
points_base: list(str(), required=False)
ifc_class: str(required=False)
ifc_type: str(required=False)
functions: list(str(), required=False)
functions_base: list(str(), required=False)
brick_ontology: str(required=False)
google_ontology: str(required=False)
deprecated: bool(required=False)
kpi: list(str(), required=False)
Loading