Skip to content

Commit

Permalink
Prepare v0.4.4 (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshKarpel authored Jan 15, 2023
1 parent 72b7fda commit 55fa51f
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 81 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ exclude_lines =
if False:
if __name__ == .__main__.:
if TYPE_CHECKING:
@overload
assert False

pragma: unreachable
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- id: trailing-whitespace
exclude_types: [svg]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
rev: v1.10.0
hooks:
- id: python-check-mock-methods
- id: python-no-eval
Expand Down
4 changes: 3 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## `0.5.0` | *Unreleased*

## `0.4.4` | *Unreleased*
## `0.4.5` | *Unreleased*

## `0.4.4` | 2023-01-13

### Added

Expand Down
154 changes: 77 additions & 77 deletions poetry.lock

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Topic :: Artistic Software",
"Topic :: Multimedia :: Graphics :: Presentation",
"Typing :: Typed"]
keywords = ["presentation", "slides", "tui", "terminal"]
"Typing :: Typed",
]
keywords = [
"presentation",
"slides",
"tui",
"terminal",
]
authors = ["JoshKarpel <[email protected]>"]
license = "MIT"
include = ["py.typed", "demo/*", "spiel.css"]
Expand Down
12 changes: 12 additions & 0 deletions tests/test_triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ def test_getitem(triggers: Triggers, idx: int, expected: int) -> None:
assert triggers[idx] == expected


@pytest.mark.parametrize(
"triggers",
[
Triggers(_times=(0, 1), now=1),
Triggers(_times=(0, 1), now=1),
Triggers(_times=(0, 1, 2), now=2),
],
)
def test_contains(triggers: Triggers) -> None:
assert all(t in triggers for t in triggers)


@given(s=slices(size=3))
def test_index_with_slice(s: slice) -> None:
triggers = Triggers(_times=(0, 1, 2), now=2)
Expand Down

0 comments on commit 55fa51f

Please sign in to comment.