kdeldycke / mail-deduplicate

@@ -35,7 +35,9 @@
Loading
35 35
def __copy_mails(dedup, mails):
36 36
    """Copy all mails to a brand new box or an existing one."""
37 37
    if not dedup.conf.dry_run:
38 -
        box = create_box(dedup.conf.export, dedup.conf.export_format, dedup.conf.export_append)
38 +
        box = create_box(
39 +
            dedup.conf.export, dedup.conf.export_format, dedup.conf.export_append
40 +
        )
39 41
40 42
    for mail in mails:
41 43
        logger.debug(f"Copying {mail!r} to {dedup.conf.export}...")
@@ -54,7 +56,9 @@
Loading
54 56
def __move_mails(dedup, mails):
55 57
    """Move all mails to a brand new box or an existing one."""
56 58
    if not dedup.conf.dry_run:
57 -
        box = create_box(dedup.conf.export, dedup.conf.export_format, dedup.conf.export_append)
59 +
        box = create_box(
60 +
            dedup.conf.export, dedup.conf.export_format, dedup.conf.export_append
61 +
        )
58 62
59 63
    for mail in mails:
60 64
        logger.debug(f"Move {mail!r} form {mail.source_path} to {dedup.conf.export}...")

@@ -386,7 +386,9 @@
Loading
386 386
387 387
        body_hasher = BODY_HASHERS.get(self.conf.hash_body)
388 388
        if not body_hasher:
389 -
            raise NotImplementedError(f"{self.conf.hash_body} body hasher not implemented yet.")
389 +
            raise NotImplementedError(
390 +
                f"{self.conf.hash_body} body hasher not implemented yet."
391 +
            )
390 392
391 393
        with click.progressbar(
392 394
            length=self.stats["mail_found"],
Files Coverage
mail_deduplicate 76.68%
Project Totals (8 files) 76.68%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading