Skip to content

Commit

Permalink
Merge pull request #66 from remi-dupre/gen-stubs
Browse files Browse the repository at this point in the history
1.0.1: Gen Python stub file
  • Loading branch information
remi-dupre authored Feb 3, 2025
2 parents cf213b8 + ab25810 commit d7562c1
Show file tree
Hide file tree
Showing 21 changed files with 673 additions and 114 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,33 @@ jobs:
- name: Check version consistency
run: poetry run ./check-version.py

# ---
# --- Check that python stub file is up to date
# ---

check-stub:
runs-on: ubuntu-latest
defaults:
run:
working-directory: opening-hours-py
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Install poetry deps
run: poetry install --with dev
- name: Check that Python stub file is up to date
run: cargo run --bin stub_gen -- check

# ---
# --- Calculate coverage using tarpaulin
# ---
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opening-hours/data/osm_examples.txt
docs
fuzz/artifacts
opening-hours/data/osm_examples.txt
__pycache__
**/target
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.0.1

### Python

- Add auto-generated Python stub file.

## 1.0.0

That's not really a huge milestone, but:
Expand Down
Loading

0 comments on commit d7562c1

Please sign in to comment.