mirror of
https://github.com/onyx-and-iris/lottery-tui.git
synced 2026-04-20 02:13:31 +00:00
Compare commits
5 Commits
cfba2303e6
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1efd518e9f | |||
| a8a46f718d | |||
| 5eaa521b8d | |||
| 19b4f32c5a | |||
| 1bd6c0e94f |
12
.pre-commit-config.yaml
Normal file
12
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v2.3.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
|
||||
- repo: https://github.com/pdm-project/pdm
|
||||
rev: 2.26.6
|
||||
hooks:
|
||||
- id: pdm-lock-check
|
||||
@@ -34,7 +34,7 @@ The TUI should now be discoverable as lottery-tui.
|
||||
|
||||
Launch the TUI, select a lottery and press the Draw button!
|
||||
|
||||
To exit from the application press *q* or *Ctrl+q*
|
||||
To exit from the application press `Ctrl+q`.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "lottery-tui"
|
||||
version = "1.0.1"
|
||||
version = "1.0.3"
|
||||
description = "A terminal user interface for lottery games."
|
||||
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]
|
||||
dependencies = ["textual>=8.0.0", "loguru>=0.7.3"]
|
||||
|
||||
@@ -94,11 +94,11 @@ class EuroMillions(Lottery):
|
||||
class SetForLife(Lottery):
|
||||
"""A class representing the Set For Life lottery.
|
||||
|
||||
Set For Life draws 5 numbers from a pool of 1 to 39, without replacement,
|
||||
Set For Life draws 5 numbers from a pool of 1 to 47, without replacement,
|
||||
and 1 "Life Ball" number from a separate pool of 1 to 10.
|
||||
"""
|
||||
|
||||
POSSIBLE_NUMBERS = range(1, 40)
|
||||
POSSIBLE_NUMBERS = range(1, 48)
|
||||
|
||||
def draw(self) -> Result:
|
||||
"""Perform a Set For Life draw."""
|
||||
|
||||
@@ -28,6 +28,7 @@ class LotteryTUI(App):
|
||||
],
|
||||
value='lotto',
|
||||
allow_blank=False,
|
||||
type_to_search=True,
|
||||
id='lottery-select',
|
||||
),
|
||||
Button('Draw', id='draw-button'),
|
||||
|
||||
Reference in New Issue
Block a user