Skip to content

Commit f9105e8

Browse files
committed
Version 1.0.0 is on
1 parent 2b2db6d commit f9105e8

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,19 @@ pip install chinoai
101101
```
102102

103103
- **Install the Project (from source)**:
104-
-
104+
105105
Use PDM to run the project:
106106

107107
```bash
108108
python3 -m pip install -e .
109109
```
110110

111+
- **Install pre-commit hooks**:
112+
113+
```bash
114+
pre-commit install
115+
```
116+
111117
- **Run the project:**
112118

113119
```bash

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "chinoai"
3-
version = "0.1.0"
3+
version = "1.0.0"
44
description = "Chino is a terminal based chatbot based on ChatGPT."
55
authors = [
66
{name = "Sam", email = "[email protected]"},
@@ -47,4 +47,4 @@ push = false
4747

4848
[tool.bumpver.file_patterns]
4949
"pyproject.toml" = ['current_version = "{version}"', 'version = "{version}"']
50-
"src/reader/__init__.py" = ["{version}"]
50+
"src/chino/__init__.py" = ["{version}"]

src/chino/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
except ModuleNotFoundError:
88
import tomli as tomllib
99

10-
__version__ = "0.1.0"
10+
__version__ = "1.0.0"

src/chino/__main__.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import os
2+
import typer
23

3-
from typer import Typer
4+
from typer import Typer, Context, Option
45

56
from .conversation import Conversation
67
from .migrations import Migration
78

89
from .utils import fancy_print
910

11+
from chino import __version__
12+
13+
1014
app: Typer = Typer(
11-
help="Chino is a chatbot based on OpenAI. It can also provide responses about queries on user-provided data."
15+
help="Chino is a chatbot based on OpenAI. It can also provide responses about queries on user-provided data.",
1216
)
1317

1418

@@ -23,10 +27,9 @@ def migrate(
2327
migration.generate_data_store()
2428

2529

26-
@app.command("start")
27-
def main() -> None:
30+
@app.command()
31+
def start() -> None:
2832
"""Start the main event loop function. A chat interface will be opened."""
29-
3033
conv: Conversation = Conversation()
3134
try:
3235
while True:
@@ -40,3 +43,9 @@ def main() -> None:
4043
fancy_print(conv.console, conv.get_response(prompt).content)
4144
except KeyboardInterrupt:
4245
conv.console.print("\n[bold red]Quiting...[/bold red]")
46+
47+
48+
@app.command()
49+
def version() -> None:
50+
"""Print the version of the chino package."""
51+
typer.echo(f"Chino {__version__}")

0 commit comments

Comments
 (0)