mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-11 12:05:35 +03:00
black, python: improved clarity of some statements
This commit is contained in:
parent
90d0ec0491
commit
5fed7f9bc7
@ -9,13 +9,13 @@
|
||||
|
||||
- Format the code passed in as a string:
|
||||
|
||||
`black -c {{path/to/file_or_directory}}`
|
||||
`black -c "{{code}}"`
|
||||
|
||||
- Output a diff for each file on stdout:
|
||||
- Output the changes that would be applied for each file:
|
||||
|
||||
`black --diff {{path/to/file_or_directory}}`
|
||||
|
||||
- Return the status without writing the files back:
|
||||
- Check the need of auto-formatting without altering the files:
|
||||
|
||||
`black --check {{path/to/file_or_directory}}`
|
||||
|
||||
|
@ -19,11 +19,11 @@
|
||||
|
||||
`python -c "{{expression}}"`
|
||||
|
||||
- Run library module as a script (terminates option list):
|
||||
- Run the script of the specified library module:
|
||||
|
||||
`python -m {{module}} {{arguments}}`
|
||||
|
||||
- Install a package using pip:
|
||||
- Install a package using `pip`:
|
||||
|
||||
`python -m pip install {{package_name}}`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user