-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
92 additions
and
101 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[flake8] | ||
# Default ignores that we can extend | ||
ignore=D100 | ||
ignore=D100,D102,D205,E203,E231,E731,W504,I001,W503 | ||
max-line-length=120 |
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 |
---|---|---|
|
@@ -129,3 +129,6 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# Ideas | ||
.idea/ |
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
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
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
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 |
---|---|---|
@@ -1,31 +1,39 @@ | ||
""" | ||
rich-click is a minimal Python module to combine the efforts | ||
of the excellent packages 'rich' and 'click'. | ||
rich-click is a minimal Python module to combine the efforts of the excellent packages 'rich' and 'click'. | ||
The intention is to provide attractive help output from | ||
click, formatted with rich, with minimal customisation required. | ||
The intention is to provide attractive help output from click, formatted with rich, with minimal | ||
customisation required. | ||
""" | ||
|
||
__version__ = "1.2.2.dev0" | ||
|
||
from click import * | ||
from click import group as click_group | ||
from typing import TYPE_CHECKING | ||
|
||
from click import * # noqa: F401, F403 | ||
from click import command as click_command | ||
from rich_click.rich_group import RichGroup | ||
from click import group as click_group | ||
|
||
from rich_click.rich_command import RichCommand | ||
from rich_click.rich_group import RichGroup | ||
|
||
# MyPy does not like star imports. Therefore when we are type checking we import them here as well. | ||
if TYPE_CHECKING: | ||
from click import argument, Choice, option, Path, version_option # noqa: F401 | ||
|
||
|
||
def group(*args, cls=RichGroup, **kwargs): | ||
"""group decorator function. | ||
""" | ||
Group decorator function. | ||
Defines the group() function so that it uses the RichGroup class by default | ||
Defines the group() function so that it uses the RichGroup class by default. | ||
""" | ||
return click_group(*args, cls=cls, **kwargs) | ||
|
||
|
||
def command(*args, cls=RichCommand, **kwargs): | ||
"""command decorator function. | ||
""" | ||
Command decorator function. | ||
Defines the command() function so that it uses the RichCommand class by default | ||
Defines the command() function so that it uses the RichCommand class by default. | ||
""" | ||
return click_command(*args, cls=cls, **kwargs) |
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
Oops, something went wrong.