From fd4cb636aec6e1c3bd1862406eb1a7e9da5e8e3e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 23:08:11 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/shellcheck-py/shellcheck-py: v0.9.0.2 → v0.10.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.9.0.2...v0.10.0.1) - [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.5...v0.9.4) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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] From 257370d4db251d7eb53e2c6bc806072444944bcd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 23:09:06 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/finddata/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]