-
-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1896 from matthewhughes934/document-shared-profiles
Document shared profiles
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Shared Profiles | ||
|
||
As well as the [built in | ||
profiles](https://pycqa.github.io/isort/docs/configuration/profiles.html), you | ||
can define and share your own profiles. | ||
|
||
All that's required is to create a Python package that exposes an entry point to | ||
a dictionary exposing profile settings under `isort.profiles`. An example is | ||
available [within the `isort` | ||
repo](https://github.com/PyCQA/isort/tree/main/example_shared_isort_profile) | ||
|
||
### Example `.isort.cfg` | ||
|
||
``` | ||
[options.entry_points] | ||
isort.profiles = | ||
shared_profile=my_module:PROFILE | ||
``` |