Skip to content

Commit 60cc71a

Browse files
Refactor main.py: Add additional text-like MIME types for improved accuracy in MIME type checking
1 parent 083b860 commit 60cc71a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

extliner/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
from pathlib import Path
33
from tabulate import tabulate
44

5+
# import sys
6+
# # apend the parent directory to sys.path to import LineCounter
7+
# sys.path.append(str(Path(__file__).resolve().parent.parent))
58
from extliner.main import LineCounter
69

7-
810
def main():
911
parser = argparse.ArgumentParser(
1012
description="📦 Count lines in files grouped by extension (with/without empty lines)."

extliner/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
"application/yaml",
1919
"application/x-yaml",
2020
"application/atom+xml",
21-
"application/rss+xml"
21+
"application/rss+xml",
22+
"application/x-msdos-program",
23+
"application/pgp-keys"
24+
2225
}
2326

2427
def is_text_mimetype(path: str) -> bool:

0 commit comments

Comments
 (0)