Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyright git hook + venv #1678

Open
jcszymansk opened this issue Jan 20, 2025 · 0 comments
Open

pyright git hook + venv #1678

jcszymansk opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@jcszymansk
Copy link

Describe the bug
Git hook for pyright ignores venv.

To reproduce
Example: https://github.com/jcszymansk/devenv-pyright

when I run pyright --verbose from command line:

> pyright --verbose
No include entries specified; assuming /home/jsz/Devel/jacekszymanski/devright
Auto-excluding **/node_modules
Auto-excluding **/__pycache__
Auto-excluding **/.*
Search paths for file:///home/jsz/Devel/jacekszymanski/devright
  /nix/store/ms1mhysl9dzsbf7gh6n20v2nvsqiqj4l-pyright-1.1.382/lib/node_modules/pyright/dist/typeshed-fallback/stdlib
  /home/jsz/Devel/jacekszymanski/devright
  /home/jsz/Devel/jacekszymanski/devright/typings
  /nix/store/ms1mhysl9dzsbf7gh6n20v2nvsqiqj4l-pyright-1.1.382/lib/node_modules/pyright/dist/typeshed-fallback/stubs/...
  /nix/store/h52ndl2457qxpks8wp7znf4h24hxl1kn-devenv-profile/lib/python3.12/site-packages
  /nix/store/ys9pw6k0mmx480gg529wxd82440cm461-python3-3.12.7-env/lib/python3.12/site-packages
  /nix/store/3nxyxd2p2d5kvmznsdgi0j2z6as3hbdw-pre-commit-4.0.1/lib/python3.12/site-packages
  /nix/store/d7wly0zny9cwmqyx70jysyihd3zvw9ml-python3.12-cfgv-3.4.0/lib/python3.12/site-packages
  /nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12/site-packages
  /nix/store/zsj4l3sqq35fysmhhysj1xmi01bs1wqa-python3.12-identify-2.6.2/lib/python3.12/site-packages
  /nix/store/bxaxs52882h8l5impq97sfndw3zaqqxm-python3.12-editdistance-s-1.0.0/lib/python3.12/site-packages
  /nix/store/bw9h2axgbrd7fs9zbz00dx5a9404xqqn-python3.12-cffi-1.17.1/lib/python3.12/site-packages
  /nix/store/4drm9zi486w2jcpsml70zkmsd8136ipm-python3.12-pycparser-2.22/lib/python3.12/site-packages
  /nix/store/ziygfgrrfki93xcr567isy6j2431qp7i-python3.12-pytest-8.3.3/lib/python3.12/site-packages
  /nix/store/px86rl62fxcvbm7hpciyizq0yq3bzhac-python3.12-iniconfig-2.0.0/lib/python3.12/site-packages
  /nix/store/qnfndbdg0k5s7zb47l5q9h7cszi56gpf-python3.12-packaging-24.1/lib/python3.12/site-packages
  /nix/store/cdg583c1xq8njwxjky1zj3qmix3hpl08-python3.12-pluggy-1.5.0/lib/python3.12/site-packages
  /nix/store/gmkkyg2l4iq23vdbara7krnr2j08fy8m-python3.12-ukkonen-1.0.1/lib/python3.12/site-packages
  /nix/store/nipgxfzw0wdk03h88dcbnwnw8wwkh8f7-python3.12-nodeenv-1.9.1/lib/python3.12/site-packages
  /nix/store/j7q50pmxnawpif7kfimy51mjhjdjldns-python3.12-pyyaml-6.0.2/lib/python3.12/site-packages
  /nix/store/d1r4w7mhq6v7vvr0r8cf3wi4jhmyrdik-python3.12-toml-0.10.2/lib/python3.12/site-packages
  /nix/store/8xbcm89jwys1dzarwpbm37n0nwrsq1i7-python3.12-virtualenv-20.26.6/lib/python3.12/site-packages
  /nix/store/d1q63libwiaylpjgs6cdi851myz42n6y-python3.12-distlib-0.3.8/lib/python3.12/site-packages
  /nix/store/imyrdiwdg86f20sf4k5p7qp6cqch854i-python3.12-filelock-3.16.1/lib/python3.12/site-packages
  /nix/store/1hci0iw7l2b54xgal7hk02a6va1b9sbm-python3.12-platformdirs-4.3.6/lib/python3.12/site-packages
  /nix/store/ys9pw6k0mmx480gg529wxd82440cm461-python3-3.12.7-env/lib/python3.12
  /nix/store/ys9pw6k0mmx480gg529wxd82440cm461-python3-3.12.7-env/lib/python3.12/lib-dynload
  /home/jsz/Devel/jacekszymanski/devright/.devenv/state/venv/lib/python3.12/site-packages
Found 1 source file
pyright 1.1.382
0 errors, 0 warnings, 0 informations 
Completed in 0.533sec

Via hook, after adding verbose and modifying main.py:

> git commit -m test .
pyright..................................................................Failed
- hook id: pyright
- exit code: 1

Auto-excluding **/node_modules
Auto-excluding **/__pycache__
Auto-excluding **/.*
Search paths for file:///home/jsz/Devel/jacekszymanski/devright
  /nix/store/ms1mhysl9dzsbf7gh6n20v2nvsqiqj4l-pyright-1.1.382/lib/node_modules/pyright/dist/typeshed-fallback/stdlib
  /home/jsz/Devel/jacekszymanski/devright
  /home/jsz/Devel/jacekszymanski/devright/typings
  /nix/store/ms1mhysl9dzsbf7gh6n20v2nvsqiqj4l-pyright-1.1.382/lib/node_modules/pyright/dist/typeshed-fallback/stubs/...
  /nix/store/h52ndl2457qxpks8wp7znf4h24hxl1kn-devenv-profile/lib/python3.12/site-packages
  /nix/store/ys9pw6k0mmx480gg529wxd82440cm461-python3-3.12.7-env/lib/python3.12/site-packages
  /nix/store/3nxyxd2p2d5kvmznsdgi0j2z6as3hbdw-pre-commit-4.0.1/lib/python3.12/site-packages
  /nix/store/d7wly0zny9cwmqyx70jysyihd3zvw9ml-python3.12-cfgv-3.4.0/lib/python3.12/site-packages
  /nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12/site-packages
  /nix/store/zsj4l3sqq35fysmhhysj1xmi01bs1wqa-python3.12-identify-2.6.2/lib/python3.12/site-packages
  /nix/store/bxaxs52882h8l5impq97sfndw3zaqqxm-python3.12-editdistance-s-1.0.0/lib/python3.12/site-packages
  /nix/store/bw9h2axgbrd7fs9zbz00dx5a9404xqqn-python3.12-cffi-1.17.1/lib/python3.12/site-packages
  /nix/store/4drm9zi486w2jcpsml70zkmsd8136ipm-python3.12-pycparser-2.22/lib/python3.12/site-packages
  /nix/store/ziygfgrrfki93xcr567isy6j2431qp7i-python3.12-pytest-8.3.3/lib/python3.12/site-packages
  /nix/store/px86rl62fxcvbm7hpciyizq0yq3bzhac-python3.12-iniconfig-2.0.0/lib/python3.12/site-packages
  /nix/store/qnfndbdg0k5s7zb47l5q9h7cszi56gpf-python3.12-packaging-24.1/lib/python3.12/site-packages
  /nix/store/cdg583c1xq8njwxjky1zj3qmix3hpl08-python3.12-pluggy-1.5.0/lib/python3.12/site-packages
  /nix/store/gmkkyg2l4iq23vdbara7krnr2j08fy8m-python3.12-ukkonen-1.0.1/lib/python3.12/site-packages
  /nix/store/nipgxfzw0wdk03h88dcbnwnw8wwkh8f7-python3.12-nodeenv-1.9.1/lib/python3.12/site-packages
  /nix/store/j7q50pmxnawpif7kfimy51mjhjdjldns-python3.12-pyyaml-6.0.2/lib/python3.12/site-packages
  /nix/store/d1r4w7mhq6v7vvr0r8cf3wi4jhmyrdik-python3.12-toml-0.10.2/lib/python3.12/site-packages
  /nix/store/8xbcm89jwys1dzarwpbm37n0nwrsq1i7-python3.12-virtualenv-20.26.6/lib/python3.12/site-packages
  /nix/store/d1q63libwiaylpjgs6cdi851myz42n6y-python3.12-distlib-0.3.8/lib/python3.12/site-packages
  /nix/store/imyrdiwdg86f20sf4k5p7qp6cqch854i-python3.12-filelock-3.16.1/lib/python3.12/site-packages
  /nix/store/1hci0iw7l2b54xgal7hk02a6va1b9sbm-python3.12-platformdirs-4.3.6/lib/python3.12/site-packages
  /nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12
  /nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12/lib-dynload
Found 1 source file
Could not import 'mashumaro' in file '/home/jsz/Devel/jacekszymanski/devright/main.py'
  Looking in stubPath 'file:///home/jsz/Devel/jacekszymanski/devright/typings'
  Attempting to resolve stub package using root path 'file:///home/jsz/Devel/jacekszymanski/devright/typings'
  Attempting to resolve using root path 'file:///home/jsz/Devel/jacekszymanski/devright/typings'
  Looking in root directory of execution environment 'file:///home/jsz/Devel/jacekszymanski/devright'
  Attempting to resolve stub package using root path 'file:///home/jsz/Devel/jacekszymanski/devright'
  Attempting to resolve using root path 'file:///home/jsz/Devel/jacekszymanski/devright'
  Looking for typeshed stdlib path
  Looking for typeshed stdlib path
  Attempting to resolve using root path 'file:///nix/store/ms1mhysl9dzsbf7gh6n20v2nvsqiqj4l-pyright-1.1.382/lib/node_modules/pyright/dist/typeshed-fallback/stdlib'
  Typeshed path not found
  Finding python search paths
  Executing interpreter: 'python3'
  Skipping '/nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python312.zip' because it is not a valid directory
  Received 23 paths from interpreter
    file:///nix/store/h52ndl2457qxpks8wp7znf4h24hxl1kn-devenv-profile/lib/python3.12/site-packages
    file:///nix/store/ys9pw6k0mmx480gg529wxd82440cm461-python3-3.12.7-env/lib/python3.12/site-packages
    file:///nix/store/3nxyxd2p2d5kvmznsdgi0j2z6as3hbdw-pre-commit-4.0.1/lib/python3.12/site-packages
    file:///nix/store/d7wly0zny9cwmqyx70jysyihd3zvw9ml-python3.12-cfgv-3.4.0/lib/python3.12/site-packages
    file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12/site-packages
    file:///nix/store/zsj4l3sqq35fysmhhysj1xmi01bs1wqa-python3.12-identify-2.6.2/lib/python3.12/site-packages
    file:///nix/store/bxaxs52882h8l5impq97sfndw3zaqqxm-python3.12-editdistance-s-1.0.0/lib/python3.12/site-packages
    file:///nix/store/bw9h2axgbrd7fs9zbz00dx5a9404xqqn-python3.12-cffi-1.17.1/lib/python3.12/site-packages
    file:///nix/store/4drm9zi486w2jcpsml70zkmsd8136ipm-python3.12-pycparser-2.22/lib/python3.12/site-packages
    file:///nix/store/ziygfgrrfki93xcr567isy6j2431qp7i-python3.12-pytest-8.3.3/lib/python3.12/site-packages
    file:///nix/store/px86rl62fxcvbm7hpciyizq0yq3bzhac-python3.12-iniconfig-2.0.0/lib/python3.12/site-packages
    file:///nix/store/qnfndbdg0k5s7zb47l5q9h7cszi56gpf-python3.12-packaging-24.1/lib/python3.12/site-packages
    file:///nix/store/cdg583c1xq8njwxjky1zj3qmix3hpl08-python3.12-pluggy-1.5.0/lib/python3.12/site-packages
    file:///nix/store/gmkkyg2l4iq23vdbara7krnr2j08fy8m-python3.12-ukkonen-1.0.1/lib/python3.12/site-packages
    file:///nix/store/nipgxfzw0wdk03h88dcbnwnw8wwkh8f7-python3.12-nodeenv-1.9.1/lib/python3.12/site-packages
    file:///nix/store/j7q50pmxnawpif7kfimy51mjhjdjldns-python3.12-pyyaml-6.0.2/lib/python3.12/site-packages
    file:///nix/store/d1r4w7mhq6v7vvr0r8cf3wi4jhmyrdik-python3.12-toml-0.10.2/lib/python3.12/site-packages
    file:///nix/store/8xbcm89jwys1dzarwpbm37n0nwrsq1i7-python3.12-virtualenv-20.26.6/lib/python3.12/site-packages
    file:///nix/store/d1q63libwiaylpjgs6cdi851myz42n6y-python3.12-distlib-0.3.8/lib/python3.12/site-packages
    file:///nix/store/imyrdiwdg86f20sf4k5p7qp6cqch854i-python3.12-filelock-3.16.1/lib/python3.12/site-packages
    file:///nix/store/1hci0iw7l2b54xgal7hk02a6va1b9sbm-python3.12-platformdirs-4.3.6/lib/python3.12/site-packages
    file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12
    file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12/lib-dynload
  Looking in python search path 'file:///nix/store/h52ndl2457qxpks8wp7znf4h24hxl1kn-devenv-profile/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/h52ndl2457qxpks8wp7znf4h24hxl1kn-devenv-profile/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/h52ndl2457qxpks8wp7znf4h24hxl1kn-devenv-profile/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/ys9pw6k0mmx480gg529wxd82440cm461-python3-3.12.7-env/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/ys9pw6k0mmx480gg529wxd82440cm461-python3-3.12.7-env/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/ys9pw6k0mmx480gg529wxd82440cm461-python3-3.12.7-env/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/3nxyxd2p2d5kvmznsdgi0j2z6as3hbdw-pre-commit-4.0.1/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/3nxyxd2p2d5kvmznsdgi0j2z6as3hbdw-pre-commit-4.0.1/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/3nxyxd2p2d5kvmznsdgi0j2z6as3hbdw-pre-commit-4.0.1/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/d7wly0zny9cwmqyx70jysyihd3zvw9ml-python3.12-cfgv-3.4.0/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/d7wly0zny9cwmqyx70jysyihd3zvw9ml-python3.12-cfgv-3.4.0/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/d7wly0zny9cwmqyx70jysyihd3zvw9ml-python3.12-cfgv-3.4.0/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/zsj4l3sqq35fysmhhysj1xmi01bs1wqa-python3.12-identify-2.6.2/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/zsj4l3sqq35fysmhhysj1xmi01bs1wqa-python3.12-identify-2.6.2/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/zsj4l3sqq35fysmhhysj1xmi01bs1wqa-python3.12-identify-2.6.2/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/bxaxs52882h8l5impq97sfndw3zaqqxm-python3.12-editdistance-s-1.0.0/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/bxaxs52882h8l5impq97sfndw3zaqqxm-python3.12-editdistance-s-1.0.0/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/bxaxs52882h8l5impq97sfndw3zaqqxm-python3.12-editdistance-s-1.0.0/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/bw9h2axgbrd7fs9zbz00dx5a9404xqqn-python3.12-cffi-1.17.1/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/bw9h2axgbrd7fs9zbz00dx5a9404xqqn-python3.12-cffi-1.17.1/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/bw9h2axgbrd7fs9zbz00dx5a9404xqqn-python3.12-cffi-1.17.1/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/4drm9zi486w2jcpsml70zkmsd8136ipm-python3.12-pycparser-2.22/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/4drm9zi486w2jcpsml70zkmsd8136ipm-python3.12-pycparser-2.22/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/4drm9zi486w2jcpsml70zkmsd8136ipm-python3.12-pycparser-2.22/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/ziygfgrrfki93xcr567isy6j2431qp7i-python3.12-pytest-8.3.3/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/ziygfgrrfki93xcr567isy6j2431qp7i-python3.12-pytest-8.3.3/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/ziygfgrrfki93xcr567isy6j2431qp7i-python3.12-pytest-8.3.3/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/px86rl62fxcvbm7hpciyizq0yq3bzhac-python3.12-iniconfig-2.0.0/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/px86rl62fxcvbm7hpciyizq0yq3bzhac-python3.12-iniconfig-2.0.0/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/px86rl62fxcvbm7hpciyizq0yq3bzhac-python3.12-iniconfig-2.0.0/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/qnfndbdg0k5s7zb47l5q9h7cszi56gpf-python3.12-packaging-24.1/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/qnfndbdg0k5s7zb47l5q9h7cszi56gpf-python3.12-packaging-24.1/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/qnfndbdg0k5s7zb47l5q9h7cszi56gpf-python3.12-packaging-24.1/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/cdg583c1xq8njwxjky1zj3qmix3hpl08-python3.12-pluggy-1.5.0/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/cdg583c1xq8njwxjky1zj3qmix3hpl08-python3.12-pluggy-1.5.0/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/cdg583c1xq8njwxjky1zj3qmix3hpl08-python3.12-pluggy-1.5.0/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/gmkkyg2l4iq23vdbara7krnr2j08fy8m-python3.12-ukkonen-1.0.1/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/gmkkyg2l4iq23vdbara7krnr2j08fy8m-python3.12-ukkonen-1.0.1/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/gmkkyg2l4iq23vdbara7krnr2j08fy8m-python3.12-ukkonen-1.0.1/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/nipgxfzw0wdk03h88dcbnwnw8wwkh8f7-python3.12-nodeenv-1.9.1/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/nipgxfzw0wdk03h88dcbnwnw8wwkh8f7-python3.12-nodeenv-1.9.1/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/nipgxfzw0wdk03h88dcbnwnw8wwkh8f7-python3.12-nodeenv-1.9.1/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/j7q50pmxnawpif7kfimy51mjhjdjldns-python3.12-pyyaml-6.0.2/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/j7q50pmxnawpif7kfimy51mjhjdjldns-python3.12-pyyaml-6.0.2/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/j7q50pmxnawpif7kfimy51mjhjdjldns-python3.12-pyyaml-6.0.2/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/d1r4w7mhq6v7vvr0r8cf3wi4jhmyrdik-python3.12-toml-0.10.2/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/d1r4w7mhq6v7vvr0r8cf3wi4jhmyrdik-python3.12-toml-0.10.2/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/d1r4w7mhq6v7vvr0r8cf3wi4jhmyrdik-python3.12-toml-0.10.2/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/8xbcm89jwys1dzarwpbm37n0nwrsq1i7-python3.12-virtualenv-20.26.6/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/8xbcm89jwys1dzarwpbm37n0nwrsq1i7-python3.12-virtualenv-20.26.6/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/8xbcm89jwys1dzarwpbm37n0nwrsq1i7-python3.12-virtualenv-20.26.6/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/d1q63libwiaylpjgs6cdi851myz42n6y-python3.12-distlib-0.3.8/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/d1q63libwiaylpjgs6cdi851myz42n6y-python3.12-distlib-0.3.8/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/d1q63libwiaylpjgs6cdi851myz42n6y-python3.12-distlib-0.3.8/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/imyrdiwdg86f20sf4k5p7qp6cqch854i-python3.12-filelock-3.16.1/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/imyrdiwdg86f20sf4k5p7qp6cqch854i-python3.12-filelock-3.16.1/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/imyrdiwdg86f20sf4k5p7qp6cqch854i-python3.12-filelock-3.16.1/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/1hci0iw7l2b54xgal7hk02a6va1b9sbm-python3.12-platformdirs-4.3.6/lib/python3.12/site-packages'
  Attempting to resolve stub package using root path 'file:///nix/store/1hci0iw7l2b54xgal7hk02a6va1b9sbm-python3.12-platformdirs-4.3.6/lib/python3.12/site-packages'
  Attempting to resolve using root path 'file:///nix/store/1hci0iw7l2b54xgal7hk02a6va1b9sbm-python3.12-platformdirs-4.3.6/lib/python3.12/site-packages'
  Looking in python search path 'file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12'
  Attempting to resolve stub package using root path 'file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12'
  Attempting to resolve using root path 'file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12'
  Looking in python search path 'file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12/lib-dynload'
  Attempting to resolve stub package using root path 'file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12/lib-dynload'
  Attempting to resolve using root path 'file:///nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/lib/python3.12/lib-dynload'
  Looking for typeshed third-party path
  Looking for typeshed stubs path
  Typeshed path not found
pyright 1.1.382
/home/jsz/Devel/jacekszymanski/devright/main.py
  /home/jsz/Devel/jacekszymanski/devright/main.py:1:6 - error: Import "mashumaro" could not be resolved (reportMissingImports)
1 error, 0 warnings, 0 informations 
Completed in 0.518sec

Venv is missing from the search path when run from the hook.

Version

> devenv version
devenv 1.3.1 (x86_64-linux)
@jcszymansk jcszymansk added the bug Something isn't working label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant