format and fix

This commit is contained in:
Waylon Walker 2023-05-18 08:38:50 -05:00
parent 9c76d0f159
commit a6f36ca6f9
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
6 changed files with 11 additions and 6 deletions

1
.gitignore vendored
View file

@ -959,3 +959,4 @@ FodyWeavers.xsd
# 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
.markata.cache

View file

@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT
import sys
if __name__ == '__main__':
from .cli import marvin_sw_text_adventure.game import game
if __name__ == "__main__":
from marvin_sw_text_adventure.game import game
sys.exit(game())

View file

@ -1,8 +1,8 @@
import typer
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.config import config_app
# from marvin_sw_text_adventure.cli.tui import tui_app

View file

@ -1,4 +1,3 @@
from rich.console import Console
import typer
from marvin_sw_text_adventure.cli.common import verbose_callback
@ -27,5 +26,6 @@ def run(
),
):
from marvin_sw_text_adventure.console import console
console.log("Starting game")
game_run()

View file

@ -1,5 +1,5 @@
from typing import List, Tuple
import atexit
from typing import List, Tuple
from marvin import ai_fn
import pydantic
@ -9,6 +9,7 @@ from rich.prompt import Prompt
from rich.table import Table
from marvin_sw_text_adventure.console import console
from numpy import character
@ai_fn
@ -201,7 +202,7 @@ def create_character() -> StarWarsCharacter:
def game():
console.print("generating your character")
prompt = Prompt()
prompt = Prompt(console=console)
character = create_character()
game = create_game(character)

View file

@ -59,6 +59,9 @@ dependencies = [
]
[tool.hatch.envs.default.scripts]
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]]
python = ["37", "38", "39", "310", "311"]