- needs vcr package --> only for extended-testing
- pip install vcrpy
- needs to have default python set
Last active
August 4, 2023 21:34
-
-
Save jedi4ever/4518afb0594ef7e1084957eb5cafdd35 to your computer and use it in GitHub Desktop.
Make Langchain and pytest working
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python@9cc8ee288f2f:~/.vscode-server/data/Machine$ more settings.json | |
{ | |
"python.testing.pytestEnabled": true, | |
"python.testing.pytestArgs": [ | |
"--disable-socket", | |
"--allow-unix-socket", | |
"tests/unit_tests" | |
], | |
"python.poetryPath": "/opt/poetry/bin/poetry", | |
"python.testing.cwd": "/workspaces/libs/langchain" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"identifier":{"id":"ms-python.python","uuid":"f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5"},"version":"2023.14.0","location":{"$mid | |
":1,"path":"/home/python/.vscode-server/extensions/ms-python.python-2023.14.0","scheme":"file"},"relativeLocation":"ms-python. | |
python-2023.14.0","metadata":{"id":"f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5","publisherId":"998b010b-e2af-44a5-a6cd-0b5fd3b9b6f8" | |
,"publisherDisplayName":"Microsoft","targetPlatform":"undefined","updated":false,"isPreReleaseVersion":false,"installedTimesta | |
mp":1691181392426,"preRelease":false}},{"identifier":{"id":"ms-python.vscode-pylance","uuid":"364d2426-116a-433a-a5d8-a5098dc3 | |
afbd"},"version":"2023.8.10","location":{"$mid":1,"path":"/home/python/.vscode-server/extensions/ms-python.vscode-pylance-2023 | |
.8.10","scheme":"file"},"relativeLocation":"ms-python.vscode-pylance-2023.8.10","metadata":{"id":"364d2426-116a-433a-a5d8-a509 | |
8dc3afbd","publisherId":"998b010b-e2af-44a5-a6cd-0b5fd3b9b6f8","publisherDisplayName":"Microsoft","targetPlatform":"undefined" | |
,"updated":false,"isPreReleaseVersion":false,"installedTimestamp":1691181397683,"preRelease":false}},{"identifier":{"id":"ms-p | |
ython.pylint","uuid":"8dc47276-5882-4c5f-903d-7eef7b9d1584"},"version":"2023.6.0","location":{"$mid":1,"path":"/home/python/.v | |
scode-server/extensions/ms-python.pylint-2023.6.0","scheme":"file"},"relativeLocation":"ms-python.pylint-2023.6.0","metadata": | |
{"id":"8dc47276-5882-4c5f-903d-7eef7b9d1584","publisherId":"998b010b-e2af-44a5-a6cd-0b5fd3b9b6f8","publisherDisplayName":"Micr | |
osoft","targetPlatform":"undefined","updated":false,"isPreReleaseVersion":false,"installedTimestamp":1691181404994,"preRelease | |
":false}},{"identifier":{"id":"ms-azuretools.vscode-docker","uuid":"0479fc1c-3d67-49f9-b087-fb9069afe48f"},"version":"1.26.0", | |
"location":{"$mid":1,"path":"/home/python/.vscode-server/extensions/ms-azuretools.vscode-docker-1.26.0","scheme":"file"},"rela | |
tiveLocation":"ms-azuretools.vscode-docker-1.26.0","metadata":{"id":"0479fc1c-3d67-49f9-b087-fb9069afe48f","publisherId":"52b7 | |
87f2-79a9-4f32-99b4-393afe3005d3","publisherDisplayName":"Microsoft","targetPlatform":"undefined","updated":false,"isPreReleas | |
eVersion":false,"installedTimestamp":1691183324114}},{"identifier":{"id":"ms-python.black-formatter","uuid":"859e640c-c157-47d | |
a-8699-9080b81c8371"},"version":"2023.4.1","location":{"$mid":1,"path":"/home/python/.vscode-server/extensions/ms-python.black | |
-formatter-2023.4.1","scheme":"file"},"relativeLocation":"ms-python.black-formatter-2023.4.1","metadata":{"id":"859e640c-c157- | |
47da-8699-9080b81c8371","publisherId":"998b010b-e2af-44a5-a6cd-0b5fd3b9b6f8","publisherDisplayName":"Microsoft","targetPlatfor | |
m":"undefined","updated":false,"isPreReleaseVersion":false,"installedTimestamp":1691183386018,"preRelease":false}},{"identifie | |
r":{"id":"ms-python.isort","uuid":"4ad0ce32-ff3f-49f0-83b5-93e5dc00cfff"},"version":"2023.10.1","location":{"$mid":1,"path":"/ | |
home/python/.vscode-server/extensions/ms-python.isort-2023.10.1","scheme":"file"},"relativeLocation":"ms-python.isort-2023.10. | |
1","metadata":{"id":"4ad0ce32-ff3f-49f0-83b5-93e5dc00cfff","publisherId":"998b010b-e2af-44a5-a6cd-0b5fd3b9b6f8","publisherDisp | |
layName":"Microsoft","targetPlatform":"undefined","updated":false,"isPreReleaseVersion":false,"installedTimestamp":16911834030 | |
21,"preRelease":false}},{"identifier":{"id":"fsevenm.run-it-on","uuid":"0eabc95d-fea6-4c14-93ad-12bf39426a63"},"version":"1.0. | |
0","location":{"$mid":1,"fsPath":"/home/python/.vscode-server/extensions/fsevenm.run-it-on-1.0.0","external":"file:///home/pyt | |
hon/.vscode-server/extensions/fsevenm.run-it-on-1.0.0","path":"/home/python/.vscode-server/extensions/fsevenm.run-it-on-1.0.0" | |
,"scheme":"file"},"relativeLocation":"fsevenm.run-it-on-1.0.0","metadata":{"id":"0eabc95d-fea6-4c14-93ad-12bf39426a63","publis | |
herId":"898b081b-6ff6-4831-9b46-a1d1a7550f18","publisherDisplayName":"fsevenm","targetPlatform":"undefined","updated":false,"i | |
sPreReleaseVersion":false,"installedTimestamp":1691183416101,"preRelease":false}}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python@9cc8ee288f2f:~/.vscode-server/extensions$ ls | |
extensions.json ms-azuretools.vscode-docker-1.26.0 ms-python.isort-2023.10.1 ms-python.python-2023.14.0 | |
fsevenm.run-it-on-1.0.0 ms-python.black-formatter-2023.4.1 ms-python.pylint-2023.6.0 ms-python.vscode-pylance-2023.8.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"python.testing.pytestEnabled": true, | |
"python.testing.pytestArgs": [ | |
"--disable-socket", | |
"--allow-unix-socket", | |
"tests/unit_tests" | |
], | |
"python.poetryPath": "/opt/poetry/bin/poetry", | |
"python.testing.cwd": "/workspaces/libs/langchain", | |
"mypy.dmypyExecutable": "/opt/virtual-envs/langchain-15sZGlK7-py3.11/bin/dmypy" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"python.testing.pytestArgs": [ | |
"--disable-socket", | |
"--allow-unix-socket", | |
"tests/unit_tests" | |
], | |
"python.testing.unittestEnabled": false, | |
"python.testing.pytestEnabled": true, | |
"python.testing.cwd": "/workspaces/libs/langchain", | |
"python.testing.pytestPath": "pytest", | |
"python.autoComplete.extraPaths": [ | |
"/workspaces/libs/langchain" | |
], | |
"python.defaultInterpreterPath": "/home/vscode/langchain-py-env/bin/python", | |
"[python]": { | |
"editor.defaultFormatter": "ms-python.black-formatter" | |
}, | |
"python.formatting.provider": "none", | |
"python.analysis.typeCheckingMode": "strict", | |
"python.analysis.extraPaths": [ | |
"/workspaces/libs/langchain" | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment