Spaces:
Sleeping
Sleeping
pannman commited on
Commit ·
c0fe430
1
Parent(s): d9e395b
Disable Poetry virtual environment creation
Browse files- .gitignore +1 -0
- entrypoint.sh +1 -0
- pyproject.toml +3 -0
.gitignore
CHANGED
|
@@ -164,6 +164,7 @@ cython_debug/
|
|
| 164 |
|
| 165 |
#poetory
|
| 166 |
/.local
|
|
|
|
| 167 |
|
| 168 |
#Only the directory structure is retained under the "data" directory.
|
| 169 |
/data/**
|
|
|
|
| 164 |
|
| 165 |
#poetory
|
| 166 |
/.local
|
| 167 |
+
.config
|
| 168 |
|
| 169 |
#Only the directory structure is retained under the "data" directory.
|
| 170 |
/data/**
|
entrypoint.sh
CHANGED
|
@@ -8,6 +8,7 @@ cd /root
|
|
| 8 |
if [ -f poetry.lock ]; then
|
| 9 |
echo "poetry.lock found. "
|
| 10 |
echo "Checking poetry.lock consistency..."
|
|
|
|
| 11 |
poetry check --lock || echo "WARNING: poetry.lock is out of date. Run 'poetry lock' to update."
|
| 12 |
echo "Proceeding with installation..."
|
| 13 |
poetry install --no-root
|
|
|
|
| 8 |
if [ -f poetry.lock ]; then
|
| 9 |
echo "poetry.lock found. "
|
| 10 |
echo "Checking poetry.lock consistency..."
|
| 11 |
+
poetry config virtualenvs.create false
|
| 12 |
poetry check --lock || echo "WARNING: poetry.lock is out of date. Run 'poetry lock' to update."
|
| 13 |
echo "Proceeding with installation..."
|
| 14 |
poetry install --no-root
|
pyproject.toml
CHANGED
|
@@ -20,6 +20,9 @@ pytest = "^7.4.0"
|
|
| 20 |
[tool.pysen]
|
| 21 |
version = "0.10"
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
[tool.pysen.lint]
|
| 24 |
enable_black = true
|
| 25 |
enable_flake8 = true
|
|
|
|
| 20 |
[tool.pysen]
|
| 21 |
version = "0.10"
|
| 22 |
|
| 23 |
+
[virtualenvs]
|
| 24 |
+
create = false
|
| 25 |
+
|
| 26 |
[tool.pysen.lint]
|
| 27 |
enable_black = true
|
| 28 |
enable_flake8 = true
|