]> git.madduck.net Git - etc/vim.git/blob - docs/getting_started.md

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Lazily import parallelized format modules
[etc/vim.git] / docs / getting_started.md
1 # Getting Started
2
3 New to _Black_? Don't worry, you've found the perfect place to get started!
4
5 ## Do you like the _Black_ code style?
6
7 Before using _Black_ on some of your code, it might be a good idea to first understand
8 how _Black_ will format your code. _Black_ isn't for everyone and you may find something
9 that is a dealbreaker for you personally, which is okay! The current _Black_ code style
10 [is described here](./the_black_code_style/current_style.md).
11
12 ## Try it out online
13
14 Also, you can try out _Black_ online for minimal fuss on the
15 [Black Playground](https://black.vercel.app) generously created by José Padilla.
16
17 ## Installation
18
19 _Black_ can be installed by running `pip install black`. It requires Python 3.6.2+ to
20 run. If you want to format Jupyter Notebooks, install with
21 `pip install 'black[jupyter]'`.
22
23 If you can't wait for the latest _hotness_ and want to install from GitHub, use:
24
25 `pip install git+https://github.com/psf/black`
26
27 ## Basic usage
28
29 To get started right away with sensible defaults:
30
31 ```sh
32 black {source_file_or_directory}...
33 ```
34
35 You can run _Black_ as a package if running it as a script doesn't work:
36
37 ```sh
38 python -m black {source_file_or_directory}...
39 ```
40
41 ## Next steps
42
43 Took a look at [the _Black_ code style](./the_black_code_style/current_style.md) and
44 tried out _Black_? Fantastic, you're ready for more. Why not explore some more on using
45 _Black_ by reading
46 [Usage and Configuration: The basics](./usage_and_configuration/the_basics.md).
47 Alternatively, you can check out the
48 [Introducing _Black_ to your project](./guides/introducing_black_to_your_project.md)
49 guide.