diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d716007..e3356722 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,23 +14,23 @@ repos: - id: check-toml - repo: https://github.com/neutrinoceros/inifix.git - rev: v4.4.0 + rev: v4.4.1 hooks: - id: inifix-format - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.3.0 + rev: 23.9.1 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.276 + rev: v0.0.292 hooks: - id: ruff args: [--fix] - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.9.0 + rev: v2.10.0 hooks: - id: pretty-format-yaml args: [--autofix, --indent, '2'] diff --git a/nonos/main.py b/nonos/main.py index cc39c518..d54cf2b8 100644 --- a/nonos/main.py +++ b/nonos/main.py @@ -113,7 +113,7 @@ def process_field( dsop_dict = dsop.coords.get_attributes default_plane = [] for key, val in dsop_dict.items(): - if type(val) != str and val.shape[0] > 2: + if not isinstance(val, str) and val.shape[0] > 2: default_plane.append(key) # default_plane = ["x","y"] plane = default_plane