Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f051082a3 | ||
|
|
c2bd4d9468 |
@@ -110,6 +110,7 @@ local servers = {
|
|||||||
settings = {
|
settings = {
|
||||||
basedpyright = {
|
basedpyright = {
|
||||||
analysis = {
|
analysis = {
|
||||||
|
typeCheckingMode = "strict",
|
||||||
diagnosticSeverityOverrides = {
|
diagnosticSeverityOverrides = {
|
||||||
reportUnannotatedClassAttribute = "none",
|
reportUnannotatedClassAttribute = "none",
|
||||||
reportAny = "none",
|
reportAny = "none",
|
||||||
@@ -126,6 +127,9 @@ local servers = {
|
|||||||
init_options = {
|
init_options = {
|
||||||
settings = {
|
settings = {
|
||||||
lineLength = 79,
|
lineLength = 79,
|
||||||
|
lint = {
|
||||||
|
extendSelect = { "ANN2" }, -- Missing return annotations.
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Executable
+14
@@ -0,0 +1,14 @@
|
|||||||
|
# Run with `source pyvenv`
|
||||||
|
|
||||||
|
if [ -n "${VIRTUAL_ENV:-}" ]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f .venv/bin/activate ]; then
|
||||||
|
python3 -m venv .venv || return $?
|
||||||
|
if [ -f requirements.txt ]; then
|
||||||
|
.venv/bin/python -m pip install -r requirements.txt || return $?
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
. .venv/bin/activate
|
||||||
Reference in New Issue
Block a user