You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Git pre-commit-hook scripts that use the black formatter
Black formatter tool is installed in my conda environment only
VSCode is set to use my conda environment (black works on save, python plugin works fine, etc)
I can Git stage changes from VS Code but I get a failure running black if I git commit from VS Code
Git Commit works fine from command line
My theory is that Git within VS Code isn't being run from within the conda environment so black isn't found. I think that if you set a venv/conda env in VS Code it should apply to everything including Git commands.
VS Code version: Code 1.75.1 (441438a, 2023-02-08T21:34:01.965Z)
OS version: Darwin arm64 22.3.0
Modes:
Sandboxed: No
Type: Bug
My setup:
My theory is that Git within VS Code isn't being run from within the conda environment so black isn't found. I think that if you set a venv/conda env in VS Code it should apply to everything including Git commands.
VS Code version: Code 1.75.1 (441438a, 2023-02-08T21:34:01.965Z)
OS version: Darwin arm64 22.3.0
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (11)
A/B Experiments
The text was updated successfully, but these errors were encountered: