Skip to content

Commit

Permalink
function start renamed to main
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Sep 5, 2023
1 parent dc555fd commit 702de5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion instld/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from instld.cli.traceback_cutting.cutting import set_cutting_excepthook


def start():
def main():
python_file = get_python_file()

with instld() as context:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
install_requires=requirements,
entry_points = {
'console_scripts': [
'instld = instld.cli.main:start'
'instld = instld.cli.main:main'
]
},
classifiers=[
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import pytest

from instld.cli.main import start
from instld.cli.main import main


@dataclass
Expand Down Expand Up @@ -47,7 +47,7 @@ def exit_handler(number): raise LocalError
returncode = 0
with redirect_stdout(stdout_buffer) as stdout, redirect_stderr(stderr_buffer) as stderr:
try:
start()
main()
stdout = stdout_buffer.getvalue()
stderr = stderr_buffer.getvalue()
before_stderr = str.encode(stderr)
Expand Down

0 comments on commit 702de5d

Please sign in to comment.