Skip to content

Commit

Permalink
🛠 Fix conf file path io error.
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Aug 29, 2023
1 parent 3cd9a99 commit 5ce4a0a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# Exclude markdown files
*.md

# Exclude lock and toml files
poetry.lock
pyproject.toml

# Exclude all .pyc files
**/__pycache__

Expand Down
7 changes: 5 additions & 2 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.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 <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions readmeai/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 5ce4a0a

Please sign in to comment.