black, python: improved clarity of some statements

This commit is contained in:
Francesco Franchina 2021-10-16 20:22:04 +02:00 committed by Starbeamrainbowlabs
parent 90d0ec0491
commit 5fed7f9bc7
2 changed files with 5 additions and 5 deletions

View File

@ -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}}`

View File

@ -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}}`