Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions krakenparser/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,8 @@ def _is_processable(filepath: Path) -> bool:
except Exception:
return False

# 3. СТРОГАЯ проверка на UTF-8 (вот здесь косяк)
try:
# Добавляем errors="strict", чтобы не глотать BOM и левые кодировки
with open(filepath, "r", encoding="utf-8", errors="strict") as f:
# Читаем небольшой кусок файла для проверки
f.read(1024)
return True
except UnicodeDecodeError:
Expand Down
16 changes: 5 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ build-backend = "setuptools.build_meta"
name = "krakenparser"
version = "1.1.2"
description = "A collection of scripts designed to process Kraken2 reports and convert them into CSV format."
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
authors = [{name = "Ilia Popov", email = "iljapopov17@gmail.com"}]
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
authors = [{ name = "Ilia Popov", email = "iljapopov17@gmail.com" }]
requires-python = ">=3.10,<=3.16"
dependencies = [
"pandas>=2.0.0,<=2.3.3",
Expand All @@ -20,10 +20,7 @@ dependencies = [
]

[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
]
dev = ["pytest>=7.0.0", "pytest-cov>=4.0.0"]

[project.urls]
Homepage = "https://github.com/PopovIILab/KrakenParser"
Expand Down Expand Up @@ -52,7 +49,4 @@ omit = [
]

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
]
exclude_lines = ["pragma: no cover", "if __name__ == .__main__.:"]
Loading