diff --git a/makefile b/makefile index 7dbc143..25099b5 100644 --- a/makefile +++ b/makefile @@ -6,7 +6,7 @@ PACKAGE_NAME := pycalver # - `make ipy` # - `make lint` # - `make devtest` -DEVELOPMENT_PYTHON_VERSION := python=3.7 +DEVELOPMENT_PYTHON_VERSION := python=3.8 # These must be valid (space separated) conda package names. # A separate conda environment will be created for each of these. @@ -18,7 +18,7 @@ DEVELOPMENT_PYTHON_VERSION := python=3.7 # - python=3.7 # - pypy2.7 # - pypy3.5 -SUPPORTED_PYTHON_VERSIONS := python=2.7 python=3.5 python=3.6 python=3.7 pypy2.7 pypy3.5 +SUPPORTED_PYTHON_VERSIONS := python=2.7 python=3.5 python=3.6 python=3.8 pypy2.7 pypy3.5 include makefile.bootstrapit.make diff --git a/setup.cfg b/setup.cfg index 2c04800..8d1258d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -160,3 +160,4 @@ disable = missing-module-docstring, missing-class-docstring, missing-function-docstring, + raise-missing-from, diff --git a/src/pycalver/rewrite.py b/src/pycalver/rewrite.py index abc1416..2a566c3 100644 --- a/src/pycalver/rewrite.py +++ b/src/pycalver/rewrite.py @@ -211,6 +211,7 @@ def diff(new_vinfo: version.VersionInfo, file_patterns: config.PatternsByGlob) - try: rfd = rfd_from_content(pattern_strs, new_vinfo, content) except NoPatternMatch: + # pylint:disable=raise-missing-from ; we support py2, so not an option errmsg = f"No patterns matched for '{file_path}'" raise NoPatternMatch(errmsg)