Skip to content

Commit

Permalink
Reformat and fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fbdtemme committed Feb 29, 2024
1 parent 7c9eaa3 commit 834a7f2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 18 deletions.
27 changes: 15 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
exclude: ^(.*.test.snap)|(assets/nf-params.yml)$

repos:
- repo: local
hooks:
- id: nf-core/tools parameters.yaml
name: Update nf-params.yml file with schema
language: python
additional_dependencies:
- nf-core
entry: nf-core
args: [create-params-file, --output, assets/nf-params.yml, "--force", "."]
pass_filenames: false
files: ^nextflow_schema.json$

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
Expand All @@ -8,20 +22,9 @@ repos:
hooks:
- id: editorconfig-checker
alias: ec
exclude: assets/nf-params.yml

- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black

- repo: local
hooks:
- id: nf-core/tools parameters.yaml
name: Update nf-params.yml file with schema
language: python
additional_dependencies:
- nf-core
entry: nf-core
args: [create-params-file, --output, assets/nf-params.yml, "--force", "."]
pass_filenames: false
files: ^nextflow_schema.json$
8 changes: 5 additions & 3 deletions assets/nf-params.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## nf-core/pixelator 1.0.3
## nf-core/pixelator 1.1.0dev
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## This is an example parameter file to pass to the `-params-file` option
## of nextflow run with the nf-core/pixelator pipeline.
Expand All @@ -19,6 +19,7 @@
## Path to comma-separated file containing information about the samples
## in the experiment.
## Type: string
## Required
## -----------------------------------------------------------------------------
# input = null

Expand All @@ -37,8 +38,9 @@
## The output directory where the results will be saved. You have to use
## absolute paths to storage on Cloud infrastructure.
## Type: string
## Required
## -----------------------------------------------------------------------------
# outdir = "./results"
# outdir = null

## -----------------------------------------------------------------------------
## email
Expand Down Expand Up @@ -404,7 +406,7 @@
## =============================================================================
## Less common options for the pipeline, typically set in a config file.

## (12 hidden parameters are not shown)
## (11 hidden parameters are not shown)



8 changes: 6 additions & 2 deletions bin/collect_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@


def subtool_versions():
cutadapt_proc = subprocess.run(["cutadapt", "--version"], capture_output=True, text=True)
cutadapt_proc = subprocess.run(
["cutadapt", "--version"], capture_output=True, text=True
)
fastp_proc = subprocess.run(["fastp", "--version"], capture_output=True, text=True)

cutadapt_version = cutadapt_proc.stdout.strip("\n")
Expand Down Expand Up @@ -73,7 +75,9 @@ def main(args):
parser = argparse.ArgumentParser()

parser.add_argument("--process-name", dest="process_name", type=str)
parser.add_argument("--workflow-data", dest="workflow_data", type=Path, default=None)
parser.add_argument(
"--workflow-data", dest="workflow_data", type=Path, default=None
)
args = parser.parse_args()

main(args)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 834a7f2

Please sign in to comment.