format and fix
This commit is contained in:
parent
9c76d0f159
commit
a6f36ca6f9
6 changed files with 11 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -959,3 +959,4 @@ FodyWeavers.xsd
|
||||||
# Additional files built by Visual Studio
|
# Additional files built by Visual Studio
|
||||||
|
|
||||||
# End of https://www.toptal.com/developers/gitignore/api/vim,node,data,emacs,python,pycharm,executable,sublimetext,visualstudio,visualstudiocode
|
# End of https://www.toptal.com/developers/gitignore/api/vim,node,data,emacs,python,pycharm,executable,sublimetext,visualstudio,visualstudiocode
|
||||||
|
.markata.cache
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == "__main__":
|
||||||
from .cli import marvin_sw_text_adventure.game import game
|
from marvin_sw_text_adventure.game import game
|
||||||
|
|
||||||
sys.exit(game())
|
sys.exit(game())
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import typer
|
import typer
|
||||||
|
|
||||||
from marvin_sw_text_adventure.cli.common import verbose_callback
|
from marvin_sw_text_adventure.cli.common import verbose_callback
|
||||||
from marvin_sw_text_adventure.console import console
|
|
||||||
from marvin_sw_text_adventure.cli.game import game_app
|
from marvin_sw_text_adventure.cli.game import game_app
|
||||||
|
|
||||||
# from marvin_sw_text_adventure.cli.config import config_app
|
# from marvin_sw_text_adventure.cli.config import config_app
|
||||||
# from marvin_sw_text_adventure.cli.tui import tui_app
|
# from marvin_sw_text_adventure.cli.tui import tui_app
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
from rich.console import Console
|
|
||||||
import typer
|
import typer
|
||||||
|
|
||||||
from marvin_sw_text_adventure.cli.common import verbose_callback
|
from marvin_sw_text_adventure.cli.common import verbose_callback
|
||||||
|
|
@ -27,5 +26,6 @@ def run(
|
||||||
),
|
),
|
||||||
):
|
):
|
||||||
from marvin_sw_text_adventure.console import console
|
from marvin_sw_text_adventure.console import console
|
||||||
|
|
||||||
console.log("Starting game")
|
console.log("Starting game")
|
||||||
game_run()
|
game_run()
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
from typing import List, Tuple
|
|
||||||
import atexit
|
import atexit
|
||||||
|
from typing import List, Tuple
|
||||||
|
|
||||||
from marvin import ai_fn
|
from marvin import ai_fn
|
||||||
import pydantic
|
import pydantic
|
||||||
|
|
@ -9,6 +9,7 @@ from rich.prompt import Prompt
|
||||||
from rich.table import Table
|
from rich.table import Table
|
||||||
|
|
||||||
from marvin_sw_text_adventure.console import console
|
from marvin_sw_text_adventure.console import console
|
||||||
|
from numpy import character
|
||||||
|
|
||||||
|
|
||||||
@ai_fn
|
@ai_fn
|
||||||
|
|
@ -201,7 +202,7 @@ def create_character() -> StarWarsCharacter:
|
||||||
def game():
|
def game():
|
||||||
console.print("generating your character")
|
console.print("generating your character")
|
||||||
|
|
||||||
prompt = Prompt()
|
prompt = Prompt(console=console)
|
||||||
|
|
||||||
character = create_character()
|
character = create_character()
|
||||||
game = create_game(character)
|
game = create_game(character)
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,9 @@ dependencies = [
|
||||||
]
|
]
|
||||||
[tool.hatch.envs.default.scripts]
|
[tool.hatch.envs.default.scripts]
|
||||||
game = 'marvin-sw-text-adventure game run'
|
game = 'marvin-sw-text-adventure game run'
|
||||||
|
lint = "ruff marvin_sw_text_adventure"
|
||||||
|
fix = "ruff marvin_sw_text_adventure --fix"
|
||||||
|
format = "black marvin_sw_text_adventure"
|
||||||
|
|
||||||
[[tool.hatch.envs.test.matrix]]
|
[[tool.hatch.envs.test.matrix]]
|
||||||
python = ["37", "38", "39", "310", "311"]
|
python = ["37", "38", "39", "310", "311"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue