Skip to content

Commit

Permalink
Merge pull request #214 from volodia99/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Oct 3, 2023
2 parents 3a26974 + 583fbb1 commit 6bcc2c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
2 changes: 1 addition & 1 deletion nonos/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bcc2c2

Please sign in to comment.