Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #140

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading