

\python -V Python 3.9.7 Create a virtual environment for the Black formatter C:\Users\\AppData\Local\Programs\Python\Python39Ĭheck that the python.exe is the one you want by running it with the version option “-V”. Note the to python.exe, with your actual user name instead of.

Open a Command Prompt window and run “dir \python.exe /s”: C:\>dir \python.exe /s (ignore any virtual environment ones) (ignore Windows apps) This is the one: Directory of C:\Users\\AppData\Local\Programs\Python\Python39 20:36 101 608 python.exe 1 File(s) 101 608 bytes Also valid for Python, so we must find the system python.exe file. On Windows I never let any installation program add itself to the path if I can control it. You need to know the path to the python.exe file for the next step (create virtual environment below).
Filewatcher python install#
Go to and download and install if not already OK. You need Python installed on your system. Enable the File Watchers plugin in P圜harm.

Add Black in P圜harm’s External tools (optional step).Create a virtual environment for the Black formatter.These are the installation steps: Overview I have heard about git pre-commit hooks but never used them on Windows. I want the code formatter to run automatically. This is bad since the following commits will contain irrelevant formatting changes. I often forget to run the code formatter before I commit code to git. An updated and shorter version from December 2022 is here.
