diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 471ebd6a..705307b3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: # pass_filenames: false - repo: https://github.com/pre-commit/mirrors-clang-format - rev: "v18.1.2" + rev: "v18.1.8" hooks: - id: clang-format entry: clang-format -i @@ -25,7 +25,7 @@ repos: types_or: [c++] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: # Formatting - id: end-of-file-fixer # Makes sure files end in a newline and only a newline. @@ -52,21 +52,21 @@ repos: # black ~ Formats Python code - repo: https://github.com/psf/black - rev: 24.3.0 + rev: 24.8.0 hooks: - id: black args: ["--line-length=120"] # flake8 ~ Enforces the Python PEP8 style guide - repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.1.1 hooks: - id: flake8 args: ["--ignore=W503", "--max-line-length=120"] # hadolint ~ Docker linter - repo: https://github.com/hadolint/hadolint - rev: v2.12.1-beta + rev: v2.13.0-beta hooks: - id: hadolint-docker args: [ diff --git a/api/formatters/geojson.py b/api/formatters/geojson.py index 1730bae2..39ebbf1a 100644 --- a/api/formatters/geojson.py +++ b/api/formatters/geojson.py @@ -5,6 +5,7 @@ from utilities import seconds_to_iso_8601_duration, convert_cm_to_m + def _make_properties(ts): ts_metadata = {key.name: value for key, value in ts.ts_mdata.ListFields() if value} diff --git a/datastore/examples/clients/python/client.py b/datastore/examples/clients/python/client.py index 57896f32..64083a86 100755 --- a/datastore/examples/clients/python/client.py +++ b/datastore/examples/clients/python/client.py @@ -165,7 +165,9 @@ def test_get_obs_in_circle(stub, mdata): "lon": 10.75, } - mdata["parameter_name"] = "_".join([mdata["standard_name"], str(mdata["level"]/100), mdata["function"], "PT0S"]) + mdata["parameter_name"] = "_".join( + [mdata["standard_name"], str(mdata["level"] / 100), mdata["function"], "PT0S"] + ) # run tests test_put_obs(stub, mdata)