Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 728 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 728 Bytes

PyCharm / Conda / git-hooks workaround

Workaround to get PyCharm to run git-hooks within the same Conda environment that is selected the PyCharm project.

Only activates the Conda environment if PyCharm runs a git command that might be connected to a git-hook. This speeds up common PyCharm git command significantly.

Requirements:

  • Platform: MacOS (but the scripts might work with some modifications also on other platforms).
  • Shell: bash
  • miniconda (v3) installed using Homebrew (recommended approach to combining Homebrew and Conda)
  • Python v2 or v3

Setup:

PyCharm->Preferences->Version Control->git->Path to git executable: Select git_wrapper.sh. Can be set up globally (for all projects).