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