Skip to content

Commit

Permalink
CI: Add linting check for static data regsitry
Browse files Browse the repository at this point in the history
We could actually fully automatically generate this, either as a
pre-commit hook or as part of building the wheel. Will hold off on those
until we are ready to do more.
  • Loading branch information
dopplershift committed Nov 28, 2023
1 parent bf8075c commit 47c855b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,10 @@ jobs:
run: |
set -o pipefail
codespell | reviewdog -efm='%f:%l: %m' -name=codespell -reporter=github-check -filter-mode=nofilter
- name: Check static data registry
# Don't skip if any other steps fail
if: always()
run: |
python -c "import pooch; pooch.make_registry('staticdata', 'src/metpy/static-data-manifest.txt')"
git diff --exit-code
2 changes: 2 additions & 0 deletions ci/linting_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ doc8==1.1.1
restructuredtext_lint==1.4.0

codespell==2.2.6

pooch==1.8.0

0 comments on commit 47c855b

Please sign in to comment.