Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
504c072
Example introduction of "cfname" field for equivalent CF standard nam…
mkavulich Apr 9, 2026
494574f
Reduce codex's over-engineered and out-of-place code
mkavulich Apr 9, 2026
22820d7
Update with CF names through C, move some variables to more appropria…
mkavulich Mar 26, 2026
90ff9c0
Update with CF names starting with D through H
mkavulich Apr 9, 2026
29640dd
Update through the Ms, move some variables to more appropriate sectio…
mkavulich Apr 9, 2026
cfdd25b
Update through Ss
mkavulich Apr 9, 2026
c7ccad4
Finished the alphabet!
mkavulich Apr 9, 2026
46e246a
Fix tools to check sections recursively for standard names
mkavulich Apr 13, 2026
033ba92
Standardize how standard names file is provided as an argument
mkavulich Apr 13, 2026
98c3c98
Now that duplicate check is actually working, remove duplicates
mkavulich Apr 13, 2026
eab9137
Add check for duplicate cfnames
mkavulich Apr 13, 2026
677e1ad
Remove logic to remove duplicate attributes/elements from XML; we wan…
mkavulich Apr 13, 2026
b9919d6
Working towards getting all tools to pass pylint checks
mkavulich Apr 13, 2026
f20a3c6
Remove references to CCPPError; this appears to have been re-introduc…
mkavulich Apr 13, 2026
3ede64e
remove duplicates from Metadata files
mkavulich Apr 13, 2026
2addf53
- Continue linting with pylint
mkavulich Apr 13, 2026
e38d0cf
Continue pylint
mkavulich Apr 13, 2026
5a65260
Everything pylints 10/10! Set up pylint to run for GitHub CI
mkavulich Apr 13, 2026
a6a312d
Remove redundant/unnecessary comments; combine unnecessarily short co…
mkavulich Apr 13, 2026
5474d29
Forgot to standardize input arguments to tools/sort_standard_names.py
mkavulich Apr 13, 2026
cd485b7
Add pylint for pylint test
mkavulich Apr 13, 2026
a375030
Some final pylint complaints
mkavulich Apr 13, 2026
f141318
fix failing tests
mkavulich Apr 13, 2026
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
36 changes: 29 additions & 7 deletions .github/workflows/pull_request_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@ on:
- release/*

jobs:
check-tools:
name: Pylint all python files under tools/
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pylint pyyaml

- name: Run pylint
run: |
pylint tools/**py

validate-xml:
name: Use xmlllint to validate the xml file against the schema file
runs-on: ubuntu-latest
Expand Down Expand Up @@ -43,8 +64,9 @@ jobs:

- name: Check for duplicate standard names, descriptions
run: |
tools/check_xml_unique.py standard_names.xml
tools/check_xml_unique.py standard_names.xml --field="description"
tools/check_xml_unique.py -s standard_names.xml
tools/check_xml_unique.py -s standard_names.xml --field="description"
tools/check_xml_unique.py -s standard_names.xml --field="cfname"

check-name-rules:
name: Check standard names against rules
Expand Down Expand Up @@ -89,7 +111,7 @@ jobs:

- name: Test that sections are alphabetized
run: |
tools/sort_standard_names.py standard_names.xml
tools/sort_standard_names.py -s standard_names.xml
if ! git diff --exit-code --quiet; then
echo "❌ Standard Names are not alphabetized within each section"
echo "Run tools/sort_standard_names.py and commit changes"
Expand All @@ -103,11 +125,11 @@ jobs:
run: |
# Checks if the saved markdown matches freshly rendered markdown.
# If this fails, prompt user to update
tools/write_standard_name_table.py --output-format md standard_names.xml
tools/write_standard_name_table.py --output-format md -s standard_names.xml
if ! git diff --exit-code --quiet; then
echo "❌ Detected that Metadata-standard-names.md is not consistent with standard_names.xml"
echo "✅ To fix: Run the following command locally and commit the result:"
echo " tools/write_standard_name_table.py --output-format md standard_names.xml"
echo " tools/write_standard_name_table.py --output-format md -s standard_names.xml"
echo "📘 This script requires the pyyaml Python package; to install with pip use command:"
echo " python -m pip install PyYaml"
echo "📘 For conda users, environment file tools/environment.yml is provided."
Expand All @@ -117,11 +139,11 @@ jobs:

- name: Test rendering xml file to yaml
run: |
tools/write_standard_name_table.py --output-format yaml standard_names.xml
tools/write_standard_name_table.py --output-format yaml -s standard_names.xml
if ! git diff --exit-code --quiet; then
echo "❌ Detected that Metadata-standard-names.yaml is not consistent with standard_names.xml"
echo "✅ To fix: Run the following command locally and commit the result:"
echo " tools/write_standard_name_table.py --output-format yaml standard_names.xml"
echo " tools/write_standard_name_table.py --output-format yaml -s standard_names.xml"
echo "📘 This script requires the pyyaml Python package; to install with pip use command:"
echo " python -m pip install PyYaml"
echo "📘 For conda users, environment file tools/environment.yml is provided."
Expand Down
140 changes: 97 additions & 43 deletions Metadata-standard-names.md

Large diffs are not rendered by default.

Loading
Loading