Made basedpyright work with Jetbrains environment

Co-authored-by: Gelu Vrabie <gelu@exolabs.net>
Co-authored-by: Seth Howes <sethshowes@gmail.com>
Co-authored-by: Matt Beton <matthew.beton@gmail.com>
This commit is contained in:
Andrei Cravtov
2025-07-23 14:12:11 +01:00
committed by GitHub
parent 8d2536d926
commit 81060b7062
5 changed files with 6 additions and 7 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

5
.gitignore vendored
View File

@@ -2,4 +2,7 @@
__pycache__
*.so
hosts_*.json
hosts_*.json
# hide direnv stuff
/.direnv

View File

@@ -3,6 +3,7 @@
<component name="com.insyncwithfoo.pyright.configurations.Override">
<option name="names">
<map>
<entry key="configurationFile" value="true" />
<entry key="diagnosticMode" value="true" />
<entry key="inlayHintsGenericTypes" value="true" />
<entry key="prefixTooltipMessages" value="true" />

2
.idea/pyright.xml generated
View File

@@ -4,8 +4,6 @@
<option name="diagnosticMode" value="WORKSPACE" />
<option name="inlayHintsGenericTypes" value="true" />
<option name="prefixTooltipMessages" value="true" />
<option name="smartExecutableResolution" value="true" />
<option name="smartLanguageServerExecutableResolution" value="true" />
<option name="useEditorFontForTooltips" value="true" />
</component>
</project>

View File

@@ -86,11 +86,7 @@
] ++ buildInputs ++ nativeBuildInputs;
# fixes libstdc++.so issues and libgl.so issues
# LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH";
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
# exports basedpyright path so tools can discover it
BASEDPYRIGHT_BIN_PATH = "${pkgs.basedpyright}/bin/";
};
}
);