Skip to content

Commit

Permalink
Merge pull request #88 from smoia/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
smoia authored Aug 13, 2023
2 parents 884ba21 + feff5fd commit 8bf8a68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ repos:
- id: check-case-conflict
- id: check-merge-conflict
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/pydocstyle
Expand All @@ -33,6 +33,6 @@ repos:
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.2.5
hooks:
- id: codespell
4 changes: 2 additions & 2 deletions phys2cvr/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ def if_declared_force_type(var, dtype, varname="an input variable", silent=False
elif dtype == "str":
tmpvar = str(var)
elif dtype == "list":
if type(var) == list:
if type(var) is list:
tmpvar = var
else:
tmpvar = [var]
else:
raise NotImplementedError(f"Type {dtype} not supported")

if not silent:
if type(tmpvar) != type(var):
if type(tmpvar) is not type(var):
if varname != "an input variable":
varname = f"variable {varname}"

Expand Down

0 comments on commit 8bf8a68

Please sign in to comment.