diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -6,13 +6,12 @@ [](https://github.com/pycqa/isort/actions?query=workflow%3ATest) [](https://github.com/pycqa/isort/actions?query=workflow%3ALint) [](https://codecov.io/gh/pycqa/isort) -[](https://codeclimate.com/github/timothycrosley/isort/maintainability) [](https://pypi.org/project/isort/) [](https://gitter.im/timothycrosley/isort?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://pepy.tech/project/isort) [](https://github.com/psf/black) [](https://pycqa.github.io/isort/) -[](https://deepsource.io/gh/timothycrosley/isort/?ref=repository-badge) +[](https://deepsource.io/gh/pycqa/isort/?ref=repository-badge) _________________ [Read Latest Documentation](https://pycqa.github.io/isort/) - [Browse GitHub Code Repository](https://github.com/pycqa/isort/) @@ -137,7 +136,7 @@ run against code written using a different version of Python) **From within Python**: -```bash +```python import isort isort.file("pythonfile.py") @@ -145,7 +144,7 @@ isort.file("pythonfile.py") or: -```bash +```python import isort sorted_code = isort.code("import b\nimport a\n") @@ -534,9 +533,9 @@ isort --rm "os.system" *.py The `--check-only` option ------------------------- -isort can also be used to used to verify that code is correctly -formatted by running it with `-c`. Any files that contain incorrectly -sorted and/or formatted imports will be outputted to `stderr`. +isort can also be used to verify that code is correctly formatted +by running it with `-c`. Any files that contain incorrectly sorted +and/or formatted imports will be outputted to `stderr`. ```bash isort **/*.py -c -v |
