1
0

Ruff
Some checks failed
Run Python tests (through Pytest) / Test (push) Failing after 29s
Verify Python project can be installed, loaded and have version checked / Test (push) Failing after 26s

This commit is contained in:
Jon Michael Aanes 2025-06-25 00:12:37 +02:00
parent 8feb3e2cde
commit 088cac75fc
5 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,7 @@ from personal_data.csv_import import determine_possible_keys, load_csv_file, sta
logger = getLogger(__name__)
def iterate_samples_from_dicts(rows: list[dict[str, Any]]) -> Iterator[ActivitySample]:
assert len(rows) > 0
max_title_parts = 2

View File

@ -106,6 +106,7 @@ def import_workout_csv(vault: ObsidianVault, rows: Rows) -> int:
MINIMUM_BELIEVABLE_STEP_COUNT = 300
def import_step_counts_csv(vault: ObsidianVault, rows: Rows) -> int:
num_updated = 0

View File

@ -13,7 +13,9 @@ import frontmatter
import marko
import marko.md_renderer
assert hasattr(frontmatter, 'loads'), 'Incorrect frontmatter package installed. Use: pip install python-frontmatter'
assert hasattr(frontmatter, 'loads'), (
'Incorrect frontmatter package installed. Use: pip install python-frontmatter'
)
logger = getLogger(__name__)

View File

@ -16,6 +16,7 @@ class DeduplicateMode(Enum):
@dataclasses.dataclass(frozen=True)
class Scraper(abc.ABC):
"""Base scraper class."""
session: requests.Session
@staticmethod

View File

@ -78,6 +78,7 @@ def find_python_packages() -> list[str]:
return sorted(packages)
with open(PACKAGE_NAME + '/_version.py') as f:
version = parse_version_file(f.read())