Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check annotations #100

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
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
9 changes: 5 additions & 4 deletions .github/workflows/CI-test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

# For more information see: https://tinyurl.com/mr4y7r8n
name: Run Basic Tests
on:
push:
Expand Down Expand Up @@ -75,7 +74,9 @@ jobs:
python -m pip install flake8 pytest
python -m pip install isort
python -m pip install yamllint
if ${{ matrix.python-version == '3.12' }}; then pip install --upgrade setuptools; fi
if ${{ matrix.python-version == '3.12' }}; then
pip install --upgrade setuptools
fi
- name: Install package
run: |
python -m pip install .[dev]
Expand All @@ -95,4 +96,4 @@ jobs:
black --check --extend-exclude 'cmip6-cmor-tables|CMIP7_DReq_Software|versioneer\.py|webapp\.py' .
- name: yamllint
run: |
yamllint -d "{extends: default, rules: {line-length: {level: 'warning'}}, ignore: ['cmip6-cmor-tables', 'CMIP7_DReq_Software']}" .
yamllint .
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ repos:
rev: '7.1.1'
hooks:
- id: flake8
# YAML stuff from https://earth.bsc.es/gitlab/digital-twins/de_340-2/workflow
# YAML stuff from https://earth.bsc.es/gitlab/digital-twins/de_340-2/workflow
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1 # or higher tag
rev: v1.35.1 # or higher tag
hooks:
- id: yamllint
args: [-d, "{extends: default, rules: {line-length: {level: 'warning'}}}"]
exclude: |
(?x) # Enable verbose regex
(
Expand Down
16 changes: 16 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
extends: default
yaml-files:
- '*.yaml'
- '*.yml'
- '.yamllint'
ignore:
- cmip6-cmor-tables/
- CMIP7_DReq_Software/
rules:
line-length:
max: 170
level: warning
document-start: disable
truthy: disable
comments:
min-spaces-from-content: 1
Loading