Skip to content

Commit b0ca61e

Browse files
committed
chore: rename cli module to __main__ so it can be executed without having to build
1 parent deabebd commit b0ca61e

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dev = [
4444
]
4545

4646
[project.scripts]
47-
gitingest = "gitingest.cli:main"
47+
gitingest = "gitingest.__main__:main"
4848

4949
[project.urls]
5050
homepage = "https://gitingest.com"

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import pytest
99
from click.testing import CliRunner, Result
1010

11-
from gitingest.cli import main
11+
from gitingest.__main__ import main
1212
from gitingest.config import MAX_FILE_SIZE, OUTPUT_FILE_NAME
1313

1414

0 commit comments

Comments
 (0)