Skip to content

Commit

Permalink
Black formatted.
Browse files Browse the repository at this point in the history
  • Loading branch information
eudesbarbosa committed Jun 22, 2021
1 parent 16ddfe2 commit c959e52
Show file tree
Hide file tree
Showing 20 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion snappy_pipeline/workflows/abstract/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def _cached_read_generic_tsv_sheet(path_abs, path_rel, naming_scheme):
@lru_cache()
def _cached_yaml_round_trip_load_str(str_value):
"""Cached reading of YAML ``str`` objects."""
#return yaml.round_trip_load(StringIO(str_value))
# return yaml.round_trip_load(StringIO(str_value))
yaml_ = yaml.YAML()
return yaml_.load(str_value)

Expand Down
4 changes: 2 additions & 2 deletions tests/snappy_pipeline/workflows/test_workflows_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def test_link_in_path_generator(germline_sheet_fake_fs, config_lookup_paths, wor
def dummy_config():
"""Return dummy configuration OrderedDicts"""
config_str = textwrap.dedent(
r"""
r"""
step_config: {}
static_data_config: {}
data_sets:
Expand All @@ -141,7 +141,7 @@ def dummy_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand All @@ -41,7 +41,7 @@ def minimal_config():
type: matched_cancer
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
4 changes: 2 additions & 2 deletions tests/snappy_pipeline/workflows/test_workflows_hla_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand All @@ -32,7 +32,7 @@ def minimal_config():
type: matched_cancer
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
4 changes: 2 additions & 2 deletions tests/snappy_pipeline/workflows/test_workflows_ngs_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -51,7 +51,7 @@ def minimal_config():
naming_scheme: only_secondary_id
pedigree_field: pedigree_field
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
4 changes: 2 additions & 2 deletions tests/snappy_pipeline/workflows/test_workflows_roh_calling.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -50,7 +50,7 @@ def minimal_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
def minimal_config():
"""Return YAML parsing result for configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand All @@ -43,7 +43,7 @@ def minimal_config():
type: matched_cancer
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
def minimal_config():
"""Return YAML parsing result for (somatic) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -54,7 +54,7 @@ def minimal_config():
type: matched_cancer
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -53,7 +53,7 @@ def minimal_config():
type: matched_cancer
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def minimal_config():
"""Return YAML parsing result for (somatic) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -59,7 +59,7 @@ def minimal_config():
type: matched_cancer
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_expected_gcnv_log_file(step_name):
def minimal_config():
"""Return YAML parsing result for (somatic) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -120,7 +120,7 @@ def minimal_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -47,7 +47,7 @@ def minimal_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -54,7 +54,7 @@ def minimal_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -51,7 +51,7 @@ def minimal_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -51,7 +51,7 @@ def minimal_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -51,7 +51,7 @@ def minimal_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -58,7 +58,7 @@ def minimal_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def minimal_config():
"""Return YAML parsing result for (germline) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -53,7 +53,7 @@ def minimal_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def minimal_config():
"""Return YAML parsing result for (somatic) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -52,7 +52,7 @@ def minimal_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def minimal_config():
"""Return YAML parsing result for (somatic) configuration"""
config_str = textwrap.dedent(
r"""
r"""
static_data_config:
reference:
path: /path/to/ref.fa
Expand Down Expand Up @@ -52,7 +52,7 @@ def minimal_config():
type: germline_variants
naming_scheme: only_secondary_id
"""
).lstrip()
).lstrip()
yaml_ = yaml.YAML()
return yaml_.load(config_str)

Expand Down

0 comments on commit c959e52

Please sign in to comment.