diff --git a/.dockerignore b/.dockerignore index df39412d..eb9760a3 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,10 +1,6 @@ # Exclude markdown files *.md -# Exclude lock and toml files -poetry.lock -pyproject.toml - # Exclude all .pyc files **/__pycache__ diff --git a/pyproject.toml b/pyproject.toml index 91119d24..d4604a3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "readmeai" -version = "0.1.6" +version = "0.1.95" description = "🚀 Generate awesome README.md files from the terminal, powered by OpenAI's GPT language model APIs 💫" authors = ["Eli <0x.eli.64s@gmail.com>"] license = "MIT" @@ -62,6 +62,9 @@ click = "^8.1.6" [tool.poetry.scripts] readmeai = "readmeai.main:cli" +[tool.poetry.package] +include = ["conf/*.toml"] + [tool.ruff] line-length = 88 target-version = "py39" @@ -89,7 +92,7 @@ profile = "black" line_length = 88 multi_line_output = 3 include_trailing_comma = true -virtual_env = ["venv", ".venv", "env", ".env", ".tox", ".nox"] +virtual_env = ["conda", "venv", ".venv", "env", ".env", ".tox", ".nox"] [tool.pytest.ini_options] testpaths = ["tests"] diff --git a/readmeai/conf.py b/readmeai/conf.py index ca9c59c3..8071a577 100644 --- a/readmeai/conf.py +++ b/readmeai/conf.py @@ -212,9 +212,9 @@ def __post_init__(self): self.language_setup.update(conf_dict["language_setup"]) -def _get_config_dict(handler: factory.FileHandler, filename: str) -> dict: +def _get_config_dict(handler: factory.FileHandler, path: str) -> dict: """Get configuration dictionary from TOML file.""" - path = Path("conf/") / filename + path = Path("conf/") / path return handler.read(path)