Skip to content
Draft
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
6 changes: 6 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ jobs:
- name: Run validator unit tests
run: uv run python scripts/test_validate_examples.py

- name: Validate cancellation schedule vectors
run: uv run python scripts/test_cancellation_schedule.py

- name: Validate cancellation lab fixtures
run: uv run python scripts/test_cancellation_lab.py

build_and_verify_main:
needs: lint
runs-on: ubuntu-latest
Expand Down
27 changes: 27 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,33 @@ repos:
pass_filenames: false
files: ^scripts/(validate_examples|test_validate_examples)\.py$
stages: [pre-commit, pre-push]
- id: validate-cancellation-schedule
name: Validate cancellation schedule vectors
entry: uv run --frozen python scripts/test_cancellation_schedule.py
language: system
pass_filenames: false
files: |
(?x)^(
source/schemas/
|scripts/test_cancellation_schedule\.py$
|scripts/fixtures/lodging_cancellation_schedule\.json$
|docs/specification/lodging/extensions/cancellation-policy\.md$
)
stages: [pre-commit, pre-push]
- id: validate-cancellation-lab
name: Validate cancellation lab fixtures
entry: uv run --frozen python scripts/test_cancellation_lab.py
language: system
pass_filenames: false
files: |
(?x)^(
source/schemas/
|scripts/test_cancellation_(schedule|lab)\.py$
|scripts/fixtures/lodging_cancellation_(schedule|lab)\.json$
|scripts/fixtures/lodging_cancellation_lab\.md$
|docs/specification/lodging/extensions/cancellation-policy\.md$
)
stages: [pre-commit, pre-push]
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.3.3
hooks:
Expand Down
417 changes: 341 additions & 76 deletions docs/specification/lodging/extensions/cancellation-policy.md

Large diffs are not rendered by default.

Loading
Loading