Skip to content

Commit

Permalink
isort, black
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil committed Mar 27, 2024
1 parent e3134db commit 4d7dbd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions snappy_pipeline/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"""Basic utility code for snappy_pipeline
"""

import os
import sys
import warnings
from collections import OrderedDict
from collections.abc import MutableMapping
from copy import deepcopy
import os
import sys
from typing import Any
import warnings

import ruamel.yaml as ruamel_yaml
from snakemake.utils import validate
Expand Down Expand Up @@ -72,8 +72,9 @@ def expand_ref(config_path, dict_data, lookup_paths=None, dict_class=OrderedDict

def validate_config(config: dict[Any, Any], workflow: str, file=sys.stderr):
print(f"\nValidating config.yaml for {workflow}", file=file)
config_schema_path = os.path.join(os.path.dirname(snakefile_path(workflow)),
"config.schema.yaml")
config_schema_path = os.path.join(
os.path.dirname(snakefile_path(workflow)), "config.schema.yaml"
)
validate(config, config_schema_path)


Expand Down
2 changes: 1 addition & 1 deletion snappy_pipeline/workflows/adapter_trimming/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@
from biomedsheets.shortcuts import GenericSampleSheet
from snakemake.io import expand

from snappy_pipeline.utils import dictify, listify
from snappy_pipeline.base import validate_config
from snappy_pipeline.utils import dictify, listify
from snappy_pipeline.workflows.abstract import (
BaseStep,
BaseStepPart,
Expand Down

0 comments on commit 4d7dbd2

Please sign in to comment.