Skip to content

Commit

Permalink
Merge pull request #140 from ioos/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
ocefpaf authored Dec 3, 2024
2 parents bfad5f0 + 76e8a07 commit 6bda6b9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
rev: v0.8.1
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
2 changes: 1 addition & 1 deletion ioos_qc/argo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import logging
import warnings
from collections.abc import Sequence
from numbers import Real as N
from typing import Sequence

import numpy as np

Expand Down
3 changes: 2 additions & 1 deletion ioos_qc/axds.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

import logging
from collections import namedtuple
from typing import Sequence, Tuple
from collections.abc import Sequence
from typing import Tuple

import numpy as np

Expand Down
4 changes: 2 additions & 2 deletions ioos_qc/config_creator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
)

__all__ = [
"QC_CONFIG_CREATOR_SCHEMA",
"VARIABLE_CONFIG_SCHEMA",
"CreatorConfig",
"QcConfigCreator",
"QcVariableConfig",
"QC_CONFIG_CREATOR_SCHEMA",
"VARIABLE_CONFIG_SCHEMA",
]
3 changes: 2 additions & 1 deletion ioos_qc/qartod.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
import logging
import warnings
from collections import namedtuple
from collections.abc import Sequence
from numbers import Real as N
from typing import Dict, List, Optional, Sequence, Tuple, Union
from typing import Dict, List, Optional, Tuple, Union

import numpy as np
import pandas as pd
Expand Down
3 changes: 1 addition & 2 deletions ioos_qc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ def check_timestamps(
return not (
not np.array_equal(time_diff, sort_diff)
or np.any(sort_diff == zero)
or max_time_interval is not None
and np.any(sort_diff > max_time_interval)
or (max_time_interval is not None and np.any(sort_diff > max_time_interval))
)


Expand Down

0 comments on commit 6bda6b9

Please sign in to comment.