Skip to content

Commit

Permalink
[lint] black
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Jan 12, 2024
1 parent 74b60dd commit a18fe52
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bin/check_fetchngs_samplesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ class RowChecker:
"""

VALID_FORMATS = (
".fastq.gz",
)
VALID_FORMATS = (".fastq.gz",)

def __init__(
self,
Expand Down Expand Up @@ -171,7 +169,14 @@ def check_samplesheet(file_in, file_out):
https://raw.githubusercontent.com/sanger-tol/blobtoolkit/main/assets/test/samplesheet.csv
"""
required_columns = {"run_accession", "instrument_model", "instrument_platform", "library_strategy", "fastq_1", "fastq_2"}
required_columns = {
"run_accession",
"instrument_model",
"instrument_platform",
"library_strategy",
"fastq_1",
"fastq_2",
}
# See https://docs.python.org/3.9/library/csv.html#id3 to read up on `newline=""`.
with file_in.open(newline="") as in_handle:
reader = csv.DictReader(in_handle, dialect=sniff_format(in_handle))
Expand Down

0 comments on commit a18fe52

Please sign in to comment.