Updating data and contributing

How the data is kept up to date, and how to run the tests locally.

Automatic updates

A weekly GitHub Actions job compares the official CSV with the bundled copy. If the CSV has changed, the job regenerates the data, runs the verification workflow, and opens a pull request when verification passes. Package publication is a separate, manual release task.

Update the data locally

Never edit the bundled data by hand. Regenerate it with the update script:

python3 scripts/update-holidays.py
python3 scripts/update-holidays.py --check

Use --csv path/to/syukujitsu.csv to normalize an official CSV you have already downloaded. The script records the file's modification time as the retrieval time of the new snapshot.

Run the tests

python3 -m unittest discover -s tests
mvn -f packages/java/pom.xml verify
(cd packages/node && npm ci && npm run typecheck && npm test)
PYTHONPATH=packages/python/src python3 -m unittest discover -s packages/python/tests

Compare the three languages

python3 scripts/try-holidays.py

The interactive runner sends the same input to Java, TypeScript, and Python. It requires JDK 8+, Node.js 22+, npm, and Python 3.9+. Try year 2026, month 2026 5 desc, day 2026 11 23, or is 2026 11 23. Type help for the syntax and quit to exit. To run one query, pass it as arguments: python3 scripts/try-holidays.py month 2026 5 desc.

Submit changes

Submit changes with relevant tests. Put shared holiday behavior cases in tests/fixtures, and regenerate the bundled files through the update script. Update the English and Japanese documentation together.

See the contributing guide for the full rules, including the license terms for contributions: by submitting a contribution, you agree to provide it under the MIT License.