Skip to content

Commit

Permalink
Added version strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jswelling committed Apr 17, 2024
1 parent ae760d7 commit cefd4e4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class CodexCommonErrorsValidator(Validator):

description = "Test for common problems found in CODEX"
cost = 1.0
version = "1.0.0"
required = "codex"

def collect_errors(self, **kwargs) -> List[str]:
Expand Down
1 change: 1 addition & 0 deletions src/ingest_validation_tests/codex_json_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
class CodexJsonValidator(Validator):
description = "Check CODEX JSON against schema"
cost = 1.0
version = "1.0.0"
required = "codex"

def collect_errors(self, **kwargs) -> List[str]:
Expand Down
1 change: 1 addition & 0 deletions src/ingest_validation_tests/fastq_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class FASTQValidator(Validator):
description = "Check FASTQ files for basic syntax and consistency."
cost = 15.0
version = "1.0.0"

def collect_errors(self, **kwargs) -> List[str]:
threads = kwargs.get("coreuse", None) or cpu_count() // 4 or 1
Expand Down
1 change: 1 addition & 0 deletions src/ingest_validation_tests/gz_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __call__(self, filename):
class GZValidator(Validator):
description = "Recursively checking gzipped files for damage using multiprocessing pools"
cost = 5.0
version = "1.0.0"

def collect_errors(self, **kwargs) -> List[str]:
data_output2 = []
Expand Down
1 change: 1 addition & 0 deletions src/ingest_validation_tests/ome_tiff_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def _check_ome_tiff_file(file: str):
class OmeTiffValidator(Validator):
description = "Recursively test all ome-tiff files for validity"
cost = 1.0
version = "1.0.0"

def collect_errors(self, **kwargs) -> List[str]:
threads = kwargs.get("coreuse", None) or cpu_count() // 4 or 1
Expand Down
1 change: 1 addition & 0 deletions src/ingest_validation_tests/publication_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class PublicationValidator(Validator):

description = "Test for common problems found in publications"
cost = 1.0
version = "1.0.0"
base_url_re = r"(\s*\{\{\s*base_url\s*\}\})/(.*)"
url_re = r"[Uu][Rr][Ll]"
required = "publication"
Expand Down
1 change: 1 addition & 0 deletions src/ingest_validation_tests/tiff_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def _check_tiff_file(path: str) -> Optional[str]:
class TiffValidator(Validator):
description = "Recursively test all tiff files that are not ome.tiffs for validity"
cost = 1.0
version = "1.0.0"

def collect_errors(self, **kwargs) -> List[str]:
threads = kwargs.get("coreuse", None) or cpu_count() // 4 or 1
Expand Down

0 comments on commit cefd4e4

Please sign in to comment.