Skip to content

Commit

Permalink
Merge 8619a42 into 00cadd4
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevoisiak committed Apr 9, 2018
2 parents 00cadd4 + 8619a42 commit 87b273c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,33 @@ you should tell Flake8 to ignore these warnings.
Use [proofit404/blacken](https://github.com/proofit404/blacken).


### PyCharm

1. Install `black`.

$ pip install black

2. Locate your `black` installation folder.

$ which black # MacOS/Linux
/usr/local/bin/black # this is just a possible output check yours

<!-->

$ where black # Windows
%LocalAppData%\Programs\Python\Python36-32\Scripts\black.exe # possible location
3. Open External tools in PyCharm with `File -> Settings -> Tools -> External Tools`.

4. Click the + icon to add a new external tool with the following values:
- Name: black
- Description: Black is the uncompromising Python code formatter.
- Program: <install_location_from_step_2>
- Arguments: $FilePath$

5. Format the currently opened file by selecting `Tools -> External Tools -> black`.


### Vim

Commands and shortcuts:
Expand Down

0 comments on commit 87b273c

Please sign in to comment.