From 0db6c065e5f7398455462c800dd9bec48d9a4cf4 Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Thu, 11 Jan 2024 15:38:56 +0100 Subject: [PATCH] Add Trogon --- nf_core/__main__.py | 5 +++-- requirements-dev.txt | 12 ++++++++++++ requirements.txt | 12 ++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/nf_core/__main__.py b/nf_core/__main__.py index 194b2030be..4e7b5dda87 100644 --- a/nf_core/__main__.py +++ b/nf_core/__main__.py @@ -9,6 +9,7 @@ import rich.logging import rich.traceback import rich_click as click +from trogon import tui from nf_core import __version__ from nf_core.download import DownloadError @@ -30,7 +31,7 @@ "nf-core": [ { "name": "Commands for users", - "commands": ["list", "launch", "create-params-file", "download", "licences"], + "commands": ["list", "launch", "create-params-file", "download", "licences", "tui"], }, { "name": "Commands for developers", @@ -110,7 +111,7 @@ def run_nf_core(): # Launch the click cli nf_core_cli(auto_envvar_prefix="NFCORE") - +@tui() @click.group(context_settings=dict(help_option_names=["-h", "--help"])) @click.version_option(__version__) @click.option("-v", "--verbose", is_flag=True, default=False, help="Print verbose output to the console.") diff --git a/requirements-dev.txt b/requirements-dev.txt index 6d890f0e1f..03d681ce59 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,13 +1,25 @@ +mypy myst_parser pytest-cov pytest-datafiles +pytest-textual-snapshot responses +ruff Sphinx sphinx-rtd-theme +<<<<<<< Updated upstream mypy types-PyYAML types-requests +======= +textual-dev>=1.2.1 +>>>>>>> Stashed changes types-jsonschema types-Markdown +types-PyYAML +types-requests types-setuptools +<<<<<<< Updated upstream ruff +======= +>>>>>>> Stashed changes diff --git a/requirements.txt b/requirements.txt index add52f4bc6..b10af4a6ae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,8 +5,15 @@ jinja2 jsonschema>=3.0 markdown>=3.3 packaging +pdiff pre-commit prompt_toolkit>=3.0.3 +<<<<<<< Updated upstream +======= +pydantic>=2.2.1 +PyGithub +pytest-workflow>=1.6.0 +>>>>>>> Stashed changes pytest>=7.0.0 pytest-workflow>=1.6.0 pyyaml @@ -17,4 +24,9 @@ requests_cache rich-click>=1.6.1 rich>=13.3.1 tabulate +<<<<<<< Updated upstream pdiff +======= +textual>=0.47.1 +trogon +>>>>>>> Stashed changes