Skip to content

Commit d3ba7d3

Browse files
authored
Stabilize local run and pytest discovery (#72)
1 parent 35f3c44 commit d3ba7d3

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

pytest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pytest]
2+
pythonpath = .
3+
testpaths = tests

src/main.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ def main() -> None:
2424
# Supported options: Azure OpenAI, GitHub Models, OpenAI API.
2525
# See docs/setup.md for detailed configuration instructions.
2626

27-
user_name = input("Enter your name: ")
27+
try:
28+
user_name = input("Enter your name: ").strip()
29+
except EOFError:
30+
user_name = "Builder"
31+
print("Enter your name: [auto] Builder")
32+
33+
if not user_name:
34+
user_name = "Builder"
35+
2836
print(get_greeting(user_name))
2937
print("\nNext steps:")
3038
print(" 1. Read docs/setup.md to configure your environment.")

0 commit comments

Comments
 (0)