Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed Jun 5, 2024
1 parent 2d3c14c commit 306feba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mars-cli/mars_lib/biosamples_external_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
from jsonschema import validate
from jsonschema.exceptions import ValidationError, SchemaError
from typing import Union, Optional
from typing import Union

# -- #
# Hardcoded values
Expand Down
5 changes: 1 addition & 4 deletions mars-cli/mars_lib/isa_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
MaterialAttributeValue,
Study,
OntologyAnnotation,
Sample,
Source,
Material,
)
from pydantic import ValidationError
from mars_lib.target_repo import TARGET_REPO_KEY, TargetRepository
Expand Down Expand Up @@ -311,7 +308,7 @@ def fetch_existing_characteristic_category(
for char_cat in node.characteristicCategories
if char_cat.characteristicType
and char_cat.characteristicType.annotationValue
and type(char_cat.characteristicType.annotationValue) == str
and isinstance(char_cat.characteristicType.annotationValue, str)
and char_cat.characteristicType.annotationValue.lower() == "accession"
)
if not accession_cat:
Expand Down
2 changes: 0 additions & 2 deletions mars-cli/mars_lib/submit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from mars_lib.models.isa_json import Investigation
from mars_lib.models.repository_response import RepositoryResponse
from mars_lib.authentication import get_webin_auth_token
from mars_lib.biosamples_external_references import (
get_header,
Expand All @@ -10,7 +9,6 @@
)
from mars_lib.isa_json import reduce_isa_json_for_target_repo
from mars_lib.target_repo import TargetRepository
from mars_lib.authentication import get_webin_auth_token
import requests


Expand Down

0 comments on commit 306feba

Please sign in to comment.