Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed Apr 30, 2024
1 parent 20cbf3e commit 1095deb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ repos:
# hooks:
# - id: blacken-docs
# additional_dependencies: [black==23.12.0]
- repo: https://github.com/PyCQA/isort
- repo: https://github.com/PyCQA/isort # TODO: remove until ruff is stable
rev: 5.13.2
hooks:
- id: isort
Expand Down
2 changes: 1 addition & 1 deletion cmethods/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def apply_ufunc(
not isinstance(value, str) for value in kwargs["input_core_dims"].values()
):
raise ValueError(
"input_core_dims must have three key-value pairs like: " '{"obs": "time", "simh": "time", "simp": "time"}',
'input_core_dims must have three key-value pairs like: {"obs": "time", "simh": "time", "simp": "time"}',
)

input_core_dims = kwargs["input_core_dims"]
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,14 @@ lint.select = [
# "TD", # flake8-todos
# "TRY", # tryceratops # specify exception messages in class; not important
]
lint.extend-select = ["COM812"]
lint.fixable = ["ALL"]

lint.ignore = [
# "B019", # use of lru_cache or cache
# "PLR2004", # magic value in comparison
# "E203", # Whitespace before ':' # false positive on list slices
# "PLR6301", # Method `…` could be a function or static method # false positive for no-self-use
"G002", # lazy logging could be f-string
"ISC001", # implicit string concatenation
"G002", # lazy logging could be f-string
]

respect-gitignore = true
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def test_adjust_type_checking_failing() -> None:
)
with pytest.raises(
TypeError,
match="'obs' must be type xarray.core.dataarray.Dataset" " or xarray.core.dataarray.DataArray",
match="'obs' must be type xarray.core.dataarray.Dataset or xarray.core.dataarray.DataArray",
):
adjust(
method="linear_scaling",
Expand Down

0 comments on commit 1095deb

Please sign in to comment.