Skip to content

Commit

Permalink
Adding Replit files
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoubed committed Dec 13, 2024
1 parent 0216f0e commit 1412b2d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .replit
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
modules = ["python-3.12"]
run = """
poetry install
poetry run python main.py
"""

[nix]
channel = "stable-24_05"

[env]
PYTHONUNBUFFERED = "1"
POETRY_VIRTUALENVS_CREATE = "true"
POETRY_VIRTUALENVS_IN_PROJECT = "true"
POETRY_HOME = "${HOME}/.local/share/pypoetry"
PATH = "${HOME}/.local/share/pypoetry/bin:${PATH}"

[deployment]
run = ["sh", "-c", "poetry install && poetry run python main.py"]
deploymentTarget = "gce"
ignorePorts = true

[languages.python]
pattern = "**/*.py"
syntax = "python"

[languages.python.languageServer]
start = ["pylsp"]
8 changes: 8 additions & 0 deletions replit.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{pkgs}: {
deps = [
pkgs.vim
pkgs.glibcLocales
pkgs.libxcrypt
pkgs.cacert
];
}

0 comments on commit 1412b2d

Please sign in to comment.