Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/psf/black
rev: 24.10.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
hooks:
- id: black
args: [--safe, --line-length=100, --preview]
language_version: python3

- repo: https://github.com/pycqa/docformatter
rev: master
rev: v1.7.7
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: [--config, pyproject.toml]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.19.1
hooks:
- id: mypy
additional_dependencies: [
Expand All @@ -33,7 +33,7 @@ repos:
]

- repo: https://github.com/pycqa/flake8
rev: 7.1.1
rev: 7.3.0
hooks:
- id: flake8

Expand Down
1 change: 0 additions & 1 deletion utilix/rundb.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from . import uconfig, logger, io


# Config the logger:
if uconfig is not None: # type: ignore
PREFIX = uconfig.get("RunDB", "rundb_api_url", fallback=None) # type: ignore
Expand Down
6 changes: 2 additions & 4 deletions utilix/scripts/xefind.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,14 @@ def parse_args():

"""

parser = argparse.ArgumentParser(
description="""
parser = argparse.ArgumentParser(description="""
Check if the data is available for a given list of runs,
or for a given source and science run.
You can provide a file with the run_ids,
or use the source and science run to get the run_ids from the db.
Example from db: python find_available.py peaklets --science_run sr1 --source none
Example from file: python find_available.py peaklets --filename /path/to/runs.txt
"""
)
""")
# First argument is the data type
parser.add_argument(
"data_type", type=str, help="The data type to check (e.g. peaklets, event_info, etc)"
Expand Down