1+ # run = "python3 scripts/main.py"
2+ run = "./startup.sh"
3+
4+ # The primary language of the repl. There can be others, though!
5+ language = "python3"
6+ # A list of globs that specify which files and directories should
7+ # be hidden in the workspace.
8+ hidden = ["venv", ".config", "**/__pycache__", "**/.mypy_cache", "**/*.pyc"]
9+
10+ # Specifies which nix channel to use when building the environment.
11+ [nix]
12+ channel = "stable-22_11"
13+
14+ [env]
15+ VIRTUAL_ENV = "/home/runner/${REPL_SLUG}/venv"
16+ PATH = "${VIRTUAL_ENV}/bin"
17+ PYTHONPATH = "$PYTHONHOME/lib/python3.10:${VIRTUAL_ENV}/lib/python3.10/site-packages"
18+ REPLIT_POETRY_PYPI_REPOSITORY = "https://package-proxy.replit.com/pypi/"
19+ MPLBACKEND = "TkAgg"
20+ POETRY_CACHE_DIR = "${HOME}/${REPL_SLUG}/.cache/pypoetry"
21+
22+ # Enable unit tests. This is only supported for a few languages.
23+ [unitTest]
24+ language = "python3"
25+
26+ # Add a debugger!
27+ [debugger]
28+ support = true
29+
30+ # How to start the debugger.
31+ [debugger.interactive]
32+ transport = "localhost:0"
33+ startCommand = ["dap-python", "main.py"]
34+
35+ # How to communicate with the debugger.
36+ [debugger.interactive.integratedAdapter]
37+ dapTcpAddress = "localhost:0"
38+
39+ # How to tell the debugger to start a debugging session.
40+ [debugger.interactive.initializeMessage]
41+ command = "initialize"
42+ type = "request"
43+
44+ [debugger.interactive.initializeMessage.arguments]
45+ adapterID = "debugpy"
46+ clientID = "replit"
47+ clientName = "replit.com"
48+ columnsStartAt1 = true
49+ linesStartAt1 = true
50+ locale = "en-us"
51+ pathFormat = "path"
52+ supportsInvalidatedEvent = true
53+ supportsProgressReporting = true
54+ supportsRunInTerminalRequest = true
55+ supportsVariablePaging = true
56+ supportsVariableType = true
57+
58+ # How to tell the debugger to start the debuggee application.
59+ [debugger.interactive.launchMessage]
60+ command = "attach"
61+ type = "request"
62+
63+ [debugger.interactive.launchMessage.arguments]
64+ logging = {}
65+
66+ # Configures the packager.
67+ [packager]
68+ language = "python3"
69+ ignoredPackages = ["unit_tests"]
70+
71+ [packager.features]
72+ enabledForHosting = false
73+ # Enable searching packages from the sidebar.
74+ packageSearch = true
75+ # Enable guessing what packages are needed from the code.
76+ guessImports = true
77+
78+ # These are the files that need to be preserved when this
79+ # language template is used as the base language template
80+ # for Python repos imported from GitHub
81+ [gitHubImport]
82+ requiredFiles = [".replit", "replit.nix", ".config", "venv"]
83+
84+ [languages]
85+
86+ [languages.python3]
87+ pattern = "**/*.py"
88+
89+ [languages.python3.languageServer]
90+ start = "pylsp"
91+
92+ [deployment]
93+ # run = ["sh", "-c", "python3 scripts/main.py"]
94+ run = "uvicorn scripts.main:app --host 0.0.0.0 --port 8080"
0 commit comments