Skip to content

Commit ab126aa

Browse files
dependabot[bot]Gutspre-commit-ci[bot]
authored
build(deps): update rich-argparse requirement from <1.5,>=1 to >=1,<1.6 (#204)
Updates the requirements on [rich-argparse](https://github.com/hamdanal/rich-argparse) to permit the latest version. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/hamdanal/rich-argparse/releases">rich-argparse's releases</a>.</em></p> <blockquote> <h2>Version 1.5.0</h2> <h2>Highlights of the release</h2> <ul> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/pull/103">PR-103</a> Python 3.13 is now officially supported</li> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/issues/95">GH-95</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/103">PR-103</a> Python 3.7 is no longer supported (EOL since 27/6/2023)</li> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/issues/120">GH-120</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/issues/121">GH-121</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/122">PR-122</a> Add options <code>help_markup</code> and <code>text_markup</code> to disable console markup in the help text and the description text respectively.</li> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/issues/115">GH-115</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/116">PR-116</a> Do not print group names suppressed with <code>argparse.SUPPRESS</code></li> </ul> <hr /> <h2>What's Changed</h2> <ul> <li>Drop support for python 3.7 and add 3.13 to CI by <a href="https://github.com/hamdanal"><code>@​hamdanal</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/103">hamdanal/rich-argparse#103</a></li> <li>Use the ruff formatter by <a href="https://github.com/hamdanal"><code>@​hamdanal</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/104">hamdanal/rich-argparse#104</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@​pre-commit-ci</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/105">hamdanal/rich-argparse#105</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@​pre-commit-ci</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/106">hamdanal/rich-argparse#106</a></li> <li>Bump actions/setup-python from 4 to 5 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/107">hamdanal/rich-argparse#107</a></li> <li>Update dependencies and fix CI by <a href="https://github.com/hamdanal"><code>@​hamdanal</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/108">hamdanal/rich-argparse#108</a></li> <li>Bump actions/upload-artifact from 3 to 4 by <a href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/109">hamdanal/rich-argparse#109</a></li> <li>[pre-commit.ci] pre-commit autoupdate by <a href="https://github.com/pre-commit-ci"><code>@​pre-commit-ci</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/110">hamdanal/rich-argparse#110</a></li> <li>Update dev tools by <a href="https://github.com/hamdanal"><code>@​hamdanal</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/113">hamdanal/rich-argparse#113</a></li> <li>New README preview by <a href="https://github.com/hamdanal"><code>@​hamdanal</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/114">hamdanal/rich-argparse#114</a></li> <li>Do not print suppressed group names by <a href="https://github.com/hamdanal"><code>@​hamdanal</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/116">hamdanal/rich-argparse#116</a></li> <li>Add options to disable console markup by <a href="https://github.com/hamdanal"><code>@​hamdanal</code></a> in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/122">hamdanal/rich-argparse#122</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/dependabot"><code>@​dependabot</code></a> made their first contribution in <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/107">hamdanal/rich-argparse#107</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/hamdanal/rich-argparse/compare/v1.4.0...v1.5.0">https://github.com/hamdanal/rich-argparse/compare/v1.4.0...v1.5.0</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/hamdanal/rich-argparse/blob/main/CHANGELOG.md">rich-argparse's changelog</a>.</em></p> <blockquote> <h2>1.5.0 - 2024-06-01</h2> <h3>Features</h3> <ul> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/pull/103">PR-103</a> Python 3.13 is now officially supported</li> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/issues/95">GH-95</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/103">PR-103</a> Python 3.7 is no longer supported (EOL since 27/6/2023)</li> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/issues/120">GH-120</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/issues/121">GH-121</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/122">PR-122</a> Add options <code>help_markup</code> and <code>text_markup</code> to disable console markup in the help text and the description text respectively.</li> </ul> <h3>Fixes</h3> <ul> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/issues/115">GH-115</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/116">PR-116</a> Do not print group names suppressed with <code>argparse.SUPPRESS</code></li> </ul> <h2>1.4.0 - 2023-10-21</h2> <h3>Features</h3> <ul> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/pull/90">PR-90</a> Make <code>RichHelpFormatter</code> itself a rich renderable with rich console.</li> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/issues/91">GH-91</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/92">PR-92</a> Allow passing custom console to <code>RichHelpFormatter</code>.</li> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/issues/91">GH-91</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/93">PR-93</a> Add <code>HelpPreviewAction</code> to generate a preview of the help output in SVG, HTML, or TXT formats.</li> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/pull/97">PR-97</a> Avoid importing <code>typing</code> to improve startup time by about 35%.</li> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/issues/84">GH-84</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/98">PR-98</a> Add a style for default values when using <code>%(default)s</code> in the help text.</li> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/pull/99">PR-99</a> Allow arbitrary renderables in the descriptions and epilog.</li> </ul> <h3>Fixes</h3> <ul> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/issues/100">GH-100</a>, <a href="https://redirect.github.com/hamdanal/rich-argparse/pull/101">PR-101</a> Fix color of brackets surrounding positional arguments in the usage.</li> </ul> <h2>1.3.0 - 2023-08-19</h2> <h3>Features</h3> <ul> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/pull/87">PR-87</a> Add <code>optparse.GENERATE_USAGE</code> to auto generate a usage similar to argparse.</li> <li><a href="https://redirect.github.com/hamdanal/rich-argparse/pull/87">PR-87</a> Add <code>rich_format_*</code> methods to optparse formatters. These return a <code>rich.text.Text</code> object.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/hamdanal/rich-argparse/commit/7af07e170206632762de3ed9a1d3b290ccc8f37e"><code>7af07e1</code></a> Version 1.5.0</li> <li><a href="https://github.com/hamdanal/rich-argparse/commit/7e45be7cf0ef86bc501108df743ddbb4d43c4a5a"><code>7e45be7</code></a> Fix typo</li> <li><a href="https://github.com/hamdanal/rich-argparse/commit/84b77ec34b39e94660789715949c5e9cfaeaa938"><code>84b77ec</code></a> Reformat the change log</li> <li><a href="https://github.com/hamdanal/rich-argparse/commit/59f05580bbef27d5cc60a38b958eea62bb36cf08"><code>59f0558</code></a> Update the README with a link to the rich styles page</li> <li><a href="https://github.com/hamdanal/rich-argparse/commit/5bb664b0127faf3809a7606f316ccefb330c94fb"><code>5bb664b</code></a> Add options to disable console markup (<a href="https://redirect.github.com/hamdanal/rich-argparse/issues/122">#122</a>)</li> <li><a href="https://github.com/hamdanal/rich-argparse/commit/76c7142063d252fb1b91425c3c98cd68595435e4"><code>76c7142</code></a> Do not print suppressed group names (<a href="https://redirect.github.com/hamdanal/rich-argparse/issues/116">#116</a>)</li> <li><a href="https://github.com/hamdanal/rich-argparse/commit/aae5e4cf653dfe6b1669946be91b2fccd2423339"><code>aae5e4c</code></a> New README preview (<a href="https://redirect.github.com/hamdanal/rich-argparse/issues/114">#114</a>)</li> <li><a href="https://github.com/hamdanal/rich-argparse/commit/b7271833275a8ebe341fbe0e03a93f1e0ec2c0a1"><code>b727183</code></a> Improvements and typo fixes in the readme</li> <li><a href="https://github.com/hamdanal/rich-argparse/commit/7a01d212a9500e69a56888300598e962f1c93ba0"><code>7a01d21</code></a> Update dev tools (<a href="https://redirect.github.com/hamdanal/rich-argparse/issues/113">#113</a>)</li> <li><a href="https://github.com/hamdanal/rich-argparse/commit/a8ed3564f84ff14efba753d0c89e960e45e95e5e"><code>a8ed356</code></a> [pre-commit.ci] pre-commit autoupdate (<a href="https://redirect.github.com/hamdanal/rich-argparse/issues/110">#110</a>)</li> <li>Additional commits viewable in <a href="https://github.com/hamdanal/rich-argparse/compare/v1.0.0...v1.5.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GeoJulien <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 33bde08 commit ab126aa

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

geotribu_cli/social/mastodon_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def __init__(
109109
elif isinstance(access_token, str) and len(access_token) < 25:
110110
logger.critical(
111111
"Le jeton d'accès à l'API Mastodon récupéré semble incorrect "
112-
"(moins de 25 caractères)."
112+
f"(moins de 25 caractères): {access_token}"
113113
)
114114
raise MastodonError(
115115
f"Le jeton d'accès à l'API Mastodon (instance : {api_base_url}) est requis."

requirements/base.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ markdownify>=0.11,<0.13
44
Mastodon.py>=1.8.1,<1.9
55
orjson>=3.8,<3.11
66
packaging>=20,<25
7-
rich_argparse>=1,<1.5
7+
rich_argparse>=1,<1.6
88
python-frontmatter>=1,<2
99
requests>=2.31,<3
1010
typing-extensions>=4,<5 ; python_version < '3.11'

tests/test_mastodon_client.py

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def test_instance_domain_from_url(self):
6262
)
6363
def test_export_data_all(self):
6464
"""Test export following accounts to CSV."""
65+
print(getenv("GEOTRIBU_MASTODON_API_ACCESS_TOKEN"))
6566
masto_client = ExtendedMastodonClient(
6667
user_agent=f"{__title_clean__}-TESTS/{__version__}", debug_requests=False
6768
)

0 commit comments

Comments
 (0)