Compare commits
6
Commits
0f52c02146
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f051082a3 | ||
|
|
c2bd4d9468 | ||
|
|
467450029d | ||
|
|
64888f9b6a | ||
|
|
5e6a665265 | ||
|
|
a430080725 |
@@ -110,6 +110,7 @@ local servers = {
|
||||
settings = {
|
||||
basedpyright = {
|
||||
analysis = {
|
||||
typeCheckingMode = "strict",
|
||||
diagnosticSeverityOverrides = {
|
||||
reportUnannotatedClassAttribute = "none",
|
||||
reportAny = "none",
|
||||
@@ -126,6 +127,9 @@ local servers = {
|
||||
init_options = {
|
||||
settings = {
|
||||
lineLength = 79,
|
||||
lint = {
|
||||
extendSelect = { "ANN2" }, -- Missing return annotations.
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
script_name=$(basename "$0")
|
||||
|
||||
if [ "$#" -eq 0 ]; then
|
||||
echo "Usage: $script_name command [args ...]" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if ! command -v inotifywait >/dev/null; then
|
||||
echo "$script_name: inotifywait was not found. Install inotify-tools." >&2
|
||||
exit 127
|
||||
fi
|
||||
|
||||
while true; do
|
||||
if [ -t 1 ]; then
|
||||
clear 2>/dev/null || true
|
||||
fi
|
||||
|
||||
( "$@" ) || echo "$script_name: command exited with status $?" >&2
|
||||
inotifywait --quiet --recursive --event close_write,move,create,delete . >/dev/null
|
||||
sleep 0.2
|
||||
done
|
||||
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