-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update requirements + apply template updates
Also add work-a-round for: jazzband/pip-tools#994
- Loading branch information
Showing
11 changed files
with
716 additions
and
729 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import sys | ||
|
||
import rich_click as click | ||
from cli_base.cli_tools import git_history | ||
from cli_base.cli_tools.verbosity import OPTION_KWARGS_VERBOSE, setup_logging | ||
from rich import print # noqa | ||
|
||
from manageprojects.cli_app import cli | ||
|
||
|
||
@cli.command() | ||
@click.option('-v', '--verbosity', **OPTION_KWARGS_VERBOSE) | ||
def update_readme_history(verbosity: int): | ||
""" | ||
Update project history base on git commits/tags in README.md | ||
Will be exited with 1 if the README.md was updated otherwise with 0. | ||
Also, callable via e.g.: | ||
python -m cli_base update-readme-history -v | ||
""" | ||
setup_logging(verbosity=verbosity) | ||
updated = git_history.update_readme_history(verbosity=verbosity) | ||
exit_code = 1 if updated else 0 | ||
if verbosity: | ||
print(f'{exit_code=}') | ||
sys.exit(exit_code) |
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
Oops, something went wrong.