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

dfint / df-gettext-toolkit / 5870810915

pending completion
5870810915

push

github

insolor
Add refurb, fix its warnings

159 of 410 branches covered (38.78%)

Branch coverage included in aggregate %.

38 of 38 new or added lines in 14 files covered. (100.0%)

371 of 881 relevant lines covered (42.11%)

1.26 hits per line

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

0.0
/df_gettext_toolkit/utils/csv_utils.py
1
import csv
×
2
from pathlib import Path
×
3
from typing import Iterator, List, TextIO
×
4

5

6
def writer(file: TextIO, **kwargs):
×
7
    return csv.writer(file, dialect="unix", lineterminator="\r\n", **kwargs)
×
8

9

10
def reader(file: TextIO, **kwargs):
×
11
    return csv.reader(file, dialect="unix", lineterminator="\r\n", **kwargs)
×
12

13

14
def write_csv(file_path: Path, encoding: str, data: List[List[str]]):
×
15
    with file_path.open("w", encoding=encoding, newline="") as file:
×
16
        csv_writer = writer(file)
×
17
        csv_writer.writerows(data)
×
18

19

20
def read_csv(file_path: Path, encoding: str) -> Iterator[List[str]]:
×
21
    with file_path.open(encoding=encoding, newline="") as file:
×
22
        csv_reader = reader(file)
×
23
        yield from csv_reader
×
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