Skip to content

Commit

Permalink
Add pre-commit and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Aug 27, 2024
1 parent 79ef4b5 commit 55259fe
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-symlinks
- id: check-yaml
- id: check-json
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: requirements-txt-fixer
name: Fix requirements*.txt
files: ^requirements.*\.txt$
- id: trailing-whitespace

- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
args: [--width, '100']

- repo: https://github.com/adrienverge/yamllint.git
rev: v1.33.0 # or higher tag
hooks:
- id: yamllint
args: [--format, parsable, --strict, -d, '{line-length: {max: 100}}']
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pre-commit==3.8.0
16 changes: 8 additions & 8 deletions schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ description: >-
classes:
Contact:
description: >-
Contact information for a person or organisation.
slots:
- name
- email
- affiliation
description: >-
Contact information for a person or organisation.
slots:
- name
- email
- affiliation
DatalabInstance:
description: >-
A *datalab* instance that is part of the *datalab* federation.
Expand All @@ -36,7 +36,7 @@ classes:
id:
required: true
description: >-
A unique identifier for the *datalab* instance. This *MUST* match the identifier prefix
A unique identifier for the *datalab* instance. This *MUST* match the identifier prefix
reported by the instance, and should be unique across all instances in the federation.
name:
required: true
Expand Down Expand Up @@ -66,5 +66,5 @@ classes:
A canonical URL or URI for any documentation associated specifically with this
*datalab* instance.
homepage:
description: >-
description: >-
A web page relevant to the *datalab* instance, for example, a group or company website.
4 changes: 2 additions & 2 deletions src/instances/demo.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: demo
name: >-
*datalab* demo instance
*datalab* demo instance
contact:
- name: datalab demo team
email: [email protected]
Expand All @@ -10,7 +10,7 @@ api_url: https://demo-api.datalab-org.io
description: >-
The *datalab* demo instance is a public instance of the *datalab* federation, hosted by
datalab industries ltd. It is intended to provide a demonstration of the capabilities
of *datalab*, and to provide a sandbox environment for testing and development. Any data
of *datalab*, and to provide a sandbox environment for testing and development. Any data
stored in the *datalab* demo instance is private unless otherwise shared, but can be removed
without warning.
source_repository: https://github.com/datalab-org/datalab-demo-deployment

0 comments on commit 55259fe

Please sign in to comment.