diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 17cec87..36d965e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files args: [--maxkb=8192] @@ -13,13 +13,13 @@ repos: - id: trailing-whitespace exclude: "tests/cis_tests/.*" - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.9.0.2 + rev: v0.10.0.1 hooks: - id: shellcheck # follow sources even when they aren't specified on the command line args: ['--external-sources'] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.5 + rev: v0.9.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/finddata/cli.py b/src/finddata/cli.py index 15489f4..a2462f4 100755 --- a/src/finddata/cli.py +++ b/src/finddata/cli.py @@ -110,7 +110,7 @@ def getProposal(facility, instrument, run): def getRunsInProp(facility, instrument, proposal): - endpoint = "api/experiments/%s" "?facility=%s" "&instrument=%s" "&projection=indexed" + endpoint = "api/experiments/%s?facility=%s&instrument=%s&projection=indexed" doc = getJson(endpoint % (proposal, facility, instrument)) return doc["indexed"]["run_number"]["ranges"]