Skip to content

Commit

Permalink
pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
patnr committed Mar 29, 2023
1 parent b701890 commit e1c0751
Show file tree
Hide file tree
Showing 3 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 @@ -2,7 +2,7 @@ exclude: '^$|settings|scripts|docs'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: |
Expand Down Expand Up @@ -30,7 +30,7 @@ repos:
args: ['--fix=no']

- repo: https://github.com/flakeheaven/flakeheaven
rev: 3.0.0
rev: 3.2.1
hooks:
- id: flakeheaven
additional_dependencies: [
Expand All @@ -43,7 +43,7 @@ repos:
]

- repo: https://github.com/timothycrosley/isort
rev: 5.6.4
rev: 5.12.0
hooks:
- id: isort
exclude: |
Expand Down
2 changes: 1 addition & 1 deletion dapper/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def __getattribute__(self, key):
def warn_zero_variance(err, flag):
msg = "\n".join(["Numerical error in stat comps.",
"Probably caused by a sample variance of 0."])
warnings.warn(msg)
warnings.warn(msg, stacklevel=2)


# Why not do all columns at once using the tabulate module? Coz
Expand Down
2 changes: 1 addition & 1 deletion tests/test_HMMs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def exclude(key, HMM):
HMM.Dyn.model.__self__.f90
except ModuleNotFoundError as err:
import warnings
warnings.warn(str(err))
warnings.warn(str(err), stacklevel=2)
return True
return False

Expand Down

0 comments on commit e1c0751

Please sign in to comment.