Skip to content

Commit 7525571

Browse files
pip: bump the pip-packages group across 1 directory with 2 updates (#282)
* pip: bump the pip-packages group across 1 directory with 2 updates Bumps the pip-packages group with 2 updates in the / directory: [potodo](https://git.afpy.org/AFPy/potodo) and [sphinx-lint](https://github.com/sphinx-contrib/sphinx-lint). Updates `potodo` from 0.25 to 0.31 Updates `sphinx-lint` from 1.0.0 to 1.0.1 - [Release notes](https://github.com/sphinx-contrib/sphinx-lint/releases) - [Commits](sphinx-contrib/sphinx-lint@v1.0.0...v1.0.1) --- updated-dependencies: - dependency-name: potodo dependency-version: '0.31' dependency-type: direct:production update-type: version-update:semver-minor dependency-group: pip-packages - dependency-name: sphinx-lint dependency-version: 1.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: pip-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Replace scan_path with PoDirectory for stats * Remove gettext installation step * Re-add gettext installation required by powrap --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
1 parent 366e654 commit 7525571

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
polib==1.2.0
22
pomerge==0.1.4
3-
potodo==0.25
3+
potodo==0.31
44
powrap==1.0.2
55
sphinx-intl==2.3.2
6-
sphinx-lint==1.0.0
6+
sphinx-lint==1.0.1

scripts/stats.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from datetime import datetime, timezone
1111
from pathlib import Path
1212

13-
from potodo.potodo import scan_path
13+
from potodo.po_file import PoDirectory
1414

1515
logging.basicConfig(level=logging.INFO)
1616

@@ -29,7 +29,8 @@ def main() -> None:
2929
if not list(pofiles_path.rglob("*.po")):
3030
raise FileNotFoundError(f"No PO files found in {pofiles_path}")
3131

32-
stats = scan_path(pofiles_path, no_cache=True, hide_reserved=False, api_url="")
32+
stats = PoDirectory(pofiles_path, use_cache=False)
33+
stats.scan()
3334

3435
stats_data = {
3536
"completion": str(round(stats.completion, 2)) + "%",

0 commit comments

Comments
 (0)