Skip to content

Commit

Permalink
fixed #81
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Jan 13, 2025
1 parent a52a57f commit 502aa63
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions bedboss/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,22 @@ def install_requirements():
)


@app.command(help="Verify configuration file")
def verify_config(
config: str = typer.Option(
...,
help="Path to the bedbase config file",
exists=True,
file_okay=True,
readable=True,
),
):
from bbconf.config_parser.utils import config_analyzer

if config_analyzer(config):
print("Configuration file is valid!")


@app.callback()
def common(
ctx: typer.Context,
Expand Down
4 changes: 2 additions & 2 deletions requirements/requirements-all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ peppy>=0.40.7
yacman>=0.8.4
requests>=2.28.2
piper>=v0.14.3
bbconf>=0.10.1
# bbconf @ git+https://github.com/databio/bbconf.git@partial_processing#egg=bbconf
# bbconf>=0.10.1
bbconf @ git+https://github.com/databio/bbconf.git@partial_processing#egg=bbconf
refgenconf>=0.12.2
pandas>=2.0.0
ubiquerg>=0.6.2
Expand Down
2 changes: 1 addition & 1 deletion test/test_dependencies/bedbase_config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ database:
port: 5432
password: docker
user: postgres
name: bedbase
database: bedbase
#name: pep-db
dialect: postgresql
driver: psycopg
Expand Down

0 comments on commit 502aa63

Please sign in to comment.