Skip to content

Commit

Permalink
Upgrade ziggy-pydust to 0.12.3 (#27)
Browse files Browse the repository at this point in the history
Accounts for changes in stub generation where stubs need to be checked
in
  • Loading branch information
robert3005 authored Oct 4, 2023
1 parent 1967615 commit 2c95979
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ jobs:
run: poetry run black .
- name: Pytest
run: poetry run pytest
- name: Check stubs
run: poetry run python -m ziglang build generate-stubs -Dcheck-stubs=true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,3 @@ zig-out/

pydust.build.zig
build.zig
*.pyi
31 changes: 31 additions & 0 deletions fibonacci/_lib.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from __future__ import annotations

def nth_fibonacci_iterative(n, /): ...
def nth_fibonacci_recursive(n, /, *, f0=0, f1=1): ...
def nth_fibonacci_recursive_tail(n, /): ...

class Fibonacci:
"""
A class that computes the Fibonacci numbers.
"""

def __init__(first_n, /):
pass
def __iter__(self, /):
"""
Implement iter(self).
"""
...

class FibonacciIterator:
"""
An iterator that computes the Fibonacci numbers.
"""

def __init__(i, ith, next, stop, /):
pass
def __next__(self, /):
"""
Implement next(self).
"""
...
20 changes: 10 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["poetry-core", "ziggy-pydust==0.11.1"]
requires = ["poetry-core", "ziggy-pydust==0.12.3"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
Expand All @@ -22,7 +22,7 @@ script = "build.py"
python = "^3.11"

[tool.poetry.group.dev.dependencies]
ziggy-pydust = "0.11.1"
ziggy-pydust = "0.12.3"
pytest = "^7.4.0"
ruff = "^0.0.292"
black = "^23.7.0"
Expand Down

0 comments on commit 2c95979

Please sign in to comment.