questo
Advanced tools
+3
-4
@@ -1,6 +0,5 @@ | ||
| Metadata-Version: 2.1 | ||
| Metadata-Version: 2.3 | ||
| Name: questo | ||
| Version: 0.4.0 | ||
| Version: 0.4.1 | ||
| Summary: A library of extensible and modular CLI prompt elements | ||
| Home-page: https://github.com/petereon/questo | ||
| License: MIT | ||
@@ -19,3 +18,3 @@ Keywords: python | ||
| Classifier: Programming Language :: Python :: 3.13 | ||
| Requires-Dist: python-yakh (>=0.4.0,<0.5.0) | ||
| Requires-Dist: python-yakh (>=0.4.1,<0.5.0) | ||
| Requires-Dist: rich (>=12.2.0) | ||
@@ -22,0 +21,0 @@ Project-URL: Repository, https://github.com/petereon/questo |
+4
-4
| [tool.poetry] | ||
| name = "questo" | ||
| version = "0.4.0" | ||
| version = "0.4.1" | ||
| description = "A library of extensible and modular CLI prompt elements" | ||
@@ -27,4 +27,4 @@ authors = ["Peter Vyboch <pvyboch1@gmail.com>"] | ||
| "test" = { shell = "poetry run ward" } | ||
| "test:watch" = { shell = "poetry run ward; poetry run watchmedo shell-command --patterns='*.py;*.feature;*.toml' --recursive --drop --command='poetry run ward'" } | ||
| "test" = { shell = "poetry run pytest --cov=questo --cov-report xml:coverage.xml" } | ||
| "test:watch" = { shell = "poetry run pytest --cov=questo --cov-report xml:coverage.xml; poetry run watchmedo shell-command --patterns='*.py;*.feature;*.toml' --recursive --drop --command='poetry run pytest --cov=questo --cov-report xml:coverage.xml'" } | ||
@@ -134,4 +134,4 @@ "bdd" = { shell = "poetry run behave" } | ||
| rich = ">=12.2.0" | ||
| python-yakh = "^0.4.0" | ||
| python-yakh = "^0.4.1" | ||
@@ -57,7 +57,7 @@ import re | ||
| rendered_options = [ | ||
| f'{cursor if state.index == i else " "} {tick if i in state.selected_indexes else " "} {option}' for i, _, option in options | ||
| '{} {} {}'.format(cursor if state.index == i else ' ', tick if i in state.selected_indexes else ' ', option) for i, _, option in options | ||
| ] | ||
| else: | ||
| rendered_options = [ | ||
| f'{cursor if state.index == i else " "} {re.sub(matched.group(0), _apply_style(matched.group(0), highlight_style), option) if state.filter else option}' | ||
| '{} {}'.format(cursor if state.index == i else ' ', re.sub(matched.group(0), _apply_style(matched.group(0), highlight_style), option) if state.filter else option) | ||
| for i, matched, option in options | ||
@@ -64,0 +64,0 @@ ] |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
24557
0.45%