mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Apply suggestions from code review
Co-Authored-By: Marius van den Beek <m.vandenbeek@gmail.com>
This commit is contained in:
co-authored by
Marius van den Beek
parent
55b384cc50
commit
956bf8ab93
@@ -22,7 +22,9 @@ from bx.seq.twobit import TWOBIT_MAGIC_NUMBER, TWOBIT_MAGIC_NUMBER_SWAP, TWOBIT_
|
||||
|
||||
from galaxy import util
|
||||
from galaxy.datatypes import metadata
|
||||
from galaxy.datatypes.data import DatatypeValidation, get_file_peek
|
||||
from galaxy.datatypes.data import (
|
||||
DatatypeValidation,
|
||||
get_file_peek,
|
||||
from galaxy.datatypes.metadata import DictParameter, ListParameter, MetadataElement, MetadataParameter
|
||||
from galaxy.util import nice_size, sqlite
|
||||
from galaxy.util.checkers import is_bz2, is_gzip
|
||||
|
||||
@@ -20,7 +20,10 @@ from markupsafe import escape
|
||||
from six.moves.urllib.parse import quote_plus
|
||||
|
||||
from galaxy.datatypes import metadata
|
||||
from galaxy.datatypes.data import DatatypeValidation, Text
|
||||
from galaxy.datatypes.data import (
|
||||
DatatypeValidation,
|
||||
Text,
|
||||
)
|
||||
from galaxy.datatypes.metadata import MetadataElement
|
||||
from galaxy.datatypes.sniff import build_sniff_from_prefix
|
||||
from galaxy.datatypes.tabular import Tabular
|
||||
|
||||
@@ -286,7 +286,7 @@ class Interval(Tabular):
|
||||
try:
|
||||
next(reader)
|
||||
except ParseError as e:
|
||||
return DatatypeValidation.invalid(str(e))
|
||||
return DatatypeValidation.invalid(unicodify(e))
|
||||
except StopIteration:
|
||||
return DatatypeValidation.valid()
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ class EmailAction(DefaultJobAction):
|
||||
|
||||
class ValidateOutputsAction(DefaultJobAction):
|
||||
"""
|
||||
This action sends an email to the galaxy user responsible for a job.
|
||||
This action validates the produced outputs against the expected datatype.
|
||||
"""
|
||||
name = "ValidateOutputsAction"
|
||||
verbose_name = "Validate Tool Outputs"
|
||||
|
||||
Reference in New Issue
Block a user