Skip to content

Regenerate data and add frictionless validate to CI#63

Open
olayway wants to merge 1 commit into
mainfrom
regenerate-data
Open

Regenerate data and add frictionless validate to CI#63
olayway wants to merge 1 commit into
mainfrom
regenerate-data

Conversation

@olayway

@olayway olayway commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

What changed and why

scripts/process.py

  • Updated source URL from https://ourairports.com/data/airports.csv to https://davidmegginson.github.io/ourairports-data/airports.csv (the redirect target) — avoids an unnecessary HTTP redirect on every run
  • Added generation of data/type-counts.csv from the processed data — previously this file was hand-maintained, had stale counts, and was missing the closed type (though closed airports are intentionally excluded from the aggregate)
  • Added newline="\n" and encoding="utf-8" to output file opens to ensure consistent LF line endings and encoding
  • Removed unused import ssl

data/airport-codes.csv, data/type-counts.csv

  • Regenerated from updated script; type-counts now reflects current data

.github/workflows/actions.yml

  • Added frictionless validate datapackage.json step after data generation; fails the workflow if the descriptor drifts from the data files

Makefile

  • Fixed validate target: was pointing to data/constituents.csv (wrong file from another dataset); now points to datapackage.json

- scripts/process.py: update source URL to davidmegginson.github.io (skips redirect),
  add type-counts.csv generation (excludes closed airports), force LF output,
  add explicit UTF-8 encoding
- data/airport-codes.csv: regenerated from updated script
- data/type-counts.csv: regenerated with current counts (was stale and hand-maintained)
- .github/workflows/actions.yml: add frictionless validate datapackage.json step
- Makefile: fix validate target (was pointing to nonexistent data/constituents.csv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant