summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-09-06 04:21:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-09-06 04:21:40 +0000
commita3bb8431c97577d11974be5fb53c0c7482758888 (patch)
treefa2cb3cd28e1224145d9bc7d0cdd1a6986d6d97f
parentAdding upstream version 3.3.0. (diff)
downloadcfgv-upstream/3.3.1.tar.xz
cfgv-upstream/3.3.1.zip
Adding upstream version 3.3.1.upstream/3.3.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--.pre-commit-config.yaml4
-rw-r--r--cfgv.py4
-rw-r--r--setup.cfg2
3 files changed, 5 insertions, 5 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f235a1e..35b521a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -18,12 +18,12 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/asottile/reorder_python_imports
- rev: v2.5.0
+ rev: v2.6.0
hooks:
- id: reorder-python-imports
args: [--py3-plus]
- repo: https://github.com/asottile/pyupgrade
- rev: v2.16.0
+ rev: v2.24.0
hooks:
- id: pyupgrade
args: [--py36-plus]
diff --git a/cfgv.py b/cfgv.py
index 2a9ceab..701d944 100644
--- a/cfgv.py
+++ b/cfgv.py
@@ -31,7 +31,7 @@ def validate_context(msg):
yield
except ValidationError as e:
_, _, tb = sys.exc_info()
- raise ValidationError(e, ctx=msg).with_traceback(tb)
+ raise ValidationError(e, ctx=msg).with_traceback(tb) from None
@contextlib.contextmanager
@@ -40,7 +40,7 @@ def reraise_as(tp):
yield
except ValidationError as e:
_, _, tb = sys.exc_info()
- raise tp(e).with_traceback(tb)
+ raise tp(e).with_traceback(tb) from None
def _dct_noop(self, dct):
diff --git a/setup.cfg b/setup.cfg
index 9a92ddf..7437e61 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = cfgv
-version = 3.3.0
+version = 3.3.1
description = Validate configuration and produce human readable error messages.
long_description = file: README.md
long_description_content_type = text/markdown