Skip to content

Commit

Permalink
Bump readmeai to v0.5.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Feb 7, 2024
1 parent 9025159 commit 6a7afa0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "readmeai"
version = "0.5.03"
version = "0.5.04"
description = "👾 Automated README file generator"
authors = ["Eli <egsalamie@gmail.com>"]
license = "MIT"
Expand Down Expand Up @@ -35,11 +35,10 @@ keywords = [
include = ["readmeai", "readmeai.*"]

[tool.poetry.scripts]
readmeai = "readmeai.cli.commands:main"
readmeai = "readmeai.cli.commands:commands"

[tool.poetry.dependencies]
python = "^3.9,<4.0.0"
aiohttp = "^3.9.2"
click = "^8.1.7"
colorlog = "^6.7.0"
gitpython = "^3.1.31"
Expand Down
4 changes: 2 additions & 2 deletions readmeai/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@options.temperature
@options.tree_depth
@options.template
def main(
def commands(
align: Optional[str],
api: str,
badges: Optional[str],
Expand Down Expand Up @@ -59,4 +59,4 @@ def main(


if __name__ == "__main__":
main()
commands()
6 changes: 3 additions & 3 deletions tests/test_cli/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
from click.testing import CliRunner

from readmeai.cli.commands import main
from readmeai.cli.commands import commands


@pytest.fixture
Expand All @@ -16,7 +16,7 @@ def test_commands_with_defaults(runner):
"""Test the commands function with default options."""
with runner.isolated_filesystem():
result = runner.invoke(
main,
commands,
[
"--repository",
"https://github.com/eli64s/readme-ai-streamlit",
Expand All @@ -30,7 +30,7 @@ def test_commands_with_defaults(runner):
def test_commands_with_invalid_option(runner):
"""Test the commands function with an invalid option."""
result = runner.invoke(
main,
commands,
[
"--align",
"right",
Expand Down

0 comments on commit 6a7afa0

Please sign in to comment.