Skip to content

Commit

Permalink
fix journal.py imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mergemaven11 committed May 23, 2024
1 parent f115a67 commit c092909
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[MESSAGES CONTROL]
disable=C0103

[MASTER]
init-hook='import sys; sys.path.append(".")'
9 changes: 6 additions & 3 deletions journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@

import typer

from .cli import handlers as handler
from .cli import utils as util
from cli import handlers as handler
from cli import utils as util

# from .cli import handlers as handler


app = typer.Typer()

Expand All @@ -32,7 +35,7 @@ def add(entries_file: str): # Add entries_file as an argument
entry = typer.prompt("Please enter your journal entry")
# Send data to add handler
handler.add_entry_to_file(
entries_file, {"Title": title, "Entry": entry}
entries_file=entries_file, entry_obj={"Title": title, "Entry": entry}
) # Pass entries_file argument


Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pre-commit = "^3.7.1"

[tool.pylint]
disable = ["C0114", "C0115", "C0116"] # Disable missing module, class, and function docstrings
init-hook = 'import sys; sys.path.append(".")'

[tool.mypy]
mypy_path = ["./chronicle_cli"]
Expand Down

0 comments on commit c092909

Please sign in to comment.