• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dfint / df-gettext-toolkit / 5871136315

pending completion
5871136315

push

github

insolor
Upgrade style of the type annotations using ruff

157 of 404 branches covered (38.86%)

Branch coverage included in aggregate %.

53 of 53 new or added lines in 18 files covered. (100.0%)

369 of 876 relevant lines covered (42.12%)

1.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/df_gettext_toolkit/create_pot/batch.py
1
from collections.abc import Callable
×
2
from pathlib import Path
×
3
from typing import NamedTuple
×
4

5
import typer
×
6

7
from df_gettext_toolkit.create_pot.from_plain_text import main as create_pot_from_plain_text
×
8
from df_gettext_toolkit.create_pot.from_raw_objects import main as create_pot_from_raw_objects
×
9
from df_gettext_toolkit.create_pot.from_speech import main as create_pot_from_speech
×
10

11

12
class Parameters(NamedTuple):
×
13
    function: Callable
×
14
    pot_file_name: str
×
15
    source_file_path: str
×
16

17

18
parameters = [
×
19
    Parameters(create_pot_from_raw_objects, "raws.pot", "raw/objects"),
20
    Parameters(create_pot_from_speech, "speech.pot", "data/speech"),
21
    Parameters(create_pot_from_plain_text, "text.pot", "raw/objects/text"),
22
]
23

24

25
def main(df_path: Path):
×
26
    for function, pot_file_name, source_file_path in parameters:
×
27
        with pot_file_name.open("w", encoding="utf-8") as pot_file:
×
28
            print(f"Creating {pot_file_name} from {df_path / source_file_path}")
×
29
            function(df_path / source_file_path, pot_file)
×
30

31

32
if __name__ == "__main__":
33
    typer.run(main)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc