Skip to content

Commit 384eb89

Browse files
authored
Merge pull request #24 from PopovIILab/dev
style(toml): format pyproject.toml with Even Better TOML
2 parents 6b479be + 4901fec commit 384eb89

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

krakenparser/pipeline.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@ def _is_processable(filepath: Path) -> bool:
5858
except Exception:
5959
return False
6060

61-
# 3. СТРОГАЯ проверка на UTF-8 (вот здесь косяк)
6261
try:
63-
# Добавляем errors="strict", чтобы не глотать BOM и левые кодировки
6462
with open(filepath, "r", encoding="utf-8", errors="strict") as f:
65-
# Читаем небольшой кусок файла для проверки
6663
f.read(1024)
6764
return True
6865
except UnicodeDecodeError:

pyproject.toml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ build-backend = "setuptools.build_meta"
66
name = "krakenparser"
77
version = "1.1.2"
88
description = "A collection of scripts designed to process Kraken2 reports and convert them into CSV format."
9-
readme = {file = "README.md", content-type = "text/markdown"}
10-
license = {file = "LICENSE"}
11-
authors = [{name = "Ilia Popov", email = "iljapopov17@gmail.com"}]
9+
readme = { file = "README.md", content-type = "text/markdown" }
10+
license = { file = "LICENSE" }
11+
authors = [{ name = "Ilia Popov", email = "iljapopov17@gmail.com" }]
1212
requires-python = ">=3.10,<=3.16"
1313
dependencies = [
1414
"pandas>=2.0.0,<=2.3.3",
@@ -20,10 +20,7 @@ dependencies = [
2020
]
2121

2222
[project.optional-dependencies]
23-
dev = [
24-
"pytest>=7.0.0",
25-
"pytest-cov>=4.0.0",
26-
]
23+
dev = ["pytest>=7.0.0", "pytest-cov>=4.0.0"]
2724

2825
[project.urls]
2926
Homepage = "https://github.com/PopovIILab/KrakenParser"
@@ -52,7 +49,4 @@ omit = [
5249
]
5350

5451
[tool.coverage.report]
55-
exclude_lines = [
56-
"pragma: no cover",
57-
"if __name__ == .__main__.:",
58-
]
52+
exclude_lines = ["pragma: no cover", "if __name__ == .__main__.:"]

0 commit comments

Comments
 (0)