Skip to content

Commit

Permalink
Fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-asplin-met-no committed Sep 20, 2024
1 parent ad3aaf8 commit 739a2de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ 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
args: [--style=llvm]
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.
Expand All @@ -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: [
Expand Down
1 change: 1 addition & 0 deletions api/formatters/geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
4 changes: 3 additions & 1 deletion datastore/examples/clients/python/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 739a2de

Please sign in to comment.