Skip to content

Commit

Permalink
chore: Bump black from 23.12.1 to 24.1.1 (#137)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Manuel Holtgrewe <[email protected]>
  • Loading branch information
dependabot[bot] and holtgrewe authored Feb 5, 2024
1 parent ad18cbd commit 817dc49
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
8 changes: 5 additions & 3 deletions altamisa/isatab/parse_investigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,11 @@ def _read_studies(self) -> Iterator[models.StudyInfo]:
# From this, parse the basic information from the study
comments = _parse_comments(section, comment_keys)
basic_info = models.BasicInfo(
Path(section[investigation_headers.STUDY_FILE_NAME])
if section[investigation_headers.STUDY_FILE_NAME]
else None,
(
Path(section[investigation_headers.STUDY_FILE_NAME])
if section[investigation_headers.STUDY_FILE_NAME]
else None
),
section[investigation_headers.STUDY_IDENTIFIER],
section[investigation_headers.STUDY_TITLE],
section[investigation_headers.STUDY_DESCRIPTION],
Expand Down
6 changes: 3 additions & 3 deletions altamisa/isatab/write_assay_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,9 @@ def _extract_process(self, node: Process) -> dict:
if node.date is not None:
attributes[table_headers.DATE] = node.date
for parameter in node.parameter_values:
attributes[
self._create_labeled_name(table_headers.PARAMETER_VALUE, parameter.name)
] = parameter
attributes[self._create_labeled_name(table_headers.PARAMETER_VALUE, parameter.name)] = (
parameter
)
for comment in node.comments:
attributes[self._create_labeled_name(table_headers.COMMENT, comment.name)] = comment
if node.name_type:
Expand Down
8 changes: 5 additions & 3 deletions altamisa/isatab/write_investigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,11 @@ def _write_ontology_source_reference(self):
section[investigation_headers.TERM_SOURCE_DESCRIPTION].append(ontology_ref.description)
comments = _extract_comments(self.investigation.ontology_source_refs.values())
headers = _extract_section_header(
list(self.investigation.ontology_source_refs.values())[0]
if self.investigation.ontology_source_refs
else None,
(
list(self.investigation.ontology_source_refs.values())[0]
if self.investigation.ontology_source_refs
else None
),
investigation_headers.ONTOLOGY_SOURCE_REFERENCE,
)
self._write_section(
Expand Down
2 changes: 1 addition & 1 deletion requirements/test_black.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
-r test.txt

# Black for formatting
black == 23.12.1
black == 24.1.1

0 comments on commit 817dc49

Please sign in to comment.