summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2021-02-10 21:40:28 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2021-02-10 21:40:28 -0800
commit8a9ad28563403edec26d1eced173e4e679cc6439 (patch)
tree14485374b35ca51feb4397d5052f3e0088fa7c3f /README.md
parent5f8c5fae9c638bf01e0a8fc61115786a39315e47 (diff)
downloadisort-8a9ad28563403edec26d1eced173e4e679cc6439.tar.gz
Move add or remove imports to dedicated documentation page
Diffstat (limited to 'README.md')
-rw-r--r--README.md29
1 files changed, 3 insertions, 26 deletions
diff --git a/README.md b/README.md
index 6c0f403b..dd25c66a 100644
--- a/README.md
+++ b/README.md
@@ -251,34 +251,11 @@ import b
import a
```
-## Adding an import to multiple files
+## Adding or removing an import from multiple files
-isort makes it easy to add an import statement across multiple files,
-while being assured it's correctly placed.
+isort can be ran or configured to add / remove imports automatically.
-To add an import to all files:
-
-```bash
-isort -a "from __future__ import print_function" *.py
-```
-
-To add an import only to files that already have imports:
-
-```bash
-isort -a "from __future__ import print_function" --append-only *.py
-```
-
-
-## Removing an import from multiple files
-
-isort also makes it easy to remove an import from multiple files,
-without having to be concerned with how it was originally formatted.
-
-From the command line:
-
-```bash
-isort --rm "os.system" *.py
-```
+[See a complete guide here.]((https://pycqa.github.io/isort/docs/configuration/add_or_remove_imports/)
## Using isort to verify code