This commit is contained in:
Manuel Barkhau 2020-08-26 22:26:30 +00:00
parent 3882418dc6
commit 3dd116188a
3 changed files with 4 additions and 2 deletions

View file

@ -6,7 +6,7 @@ PACKAGE_NAME := pycalver
# - `make ipy` # - `make ipy`
# - `make lint` # - `make lint`
# - `make devtest` # - `make devtest`
DEVELOPMENT_PYTHON_VERSION := python=3.7 DEVELOPMENT_PYTHON_VERSION := python=3.8
# These must be valid (space separated) conda package names. # These must be valid (space separated) conda package names.
# A separate conda environment will be created for each of these. # A separate conda environment will be created for each of these.
@ -18,7 +18,7 @@ DEVELOPMENT_PYTHON_VERSION := python=3.7
# - python=3.7 # - python=3.7
# - pypy2.7 # - pypy2.7
# - pypy3.5 # - 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 include makefile.bootstrapit.make

View file

@ -160,3 +160,4 @@ disable =
missing-module-docstring, missing-module-docstring,
missing-class-docstring, missing-class-docstring,
missing-function-docstring, missing-function-docstring,
raise-missing-from,

View file

@ -211,6 +211,7 @@ def diff(new_vinfo: version.VersionInfo, file_patterns: config.PatternsByGlob) -
try: try:
rfd = rfd_from_content(pattern_strs, new_vinfo, content) rfd = rfd_from_content(pattern_strs, new_vinfo, content)
except NoPatternMatch: except NoPatternMatch:
# pylint:disable=raise-missing-from ; we support py2, so not an option
errmsg = f"No patterns matched for '{file_path}'" errmsg = f"No patterns matched for '{file_path}'"
raise NoPatternMatch(errmsg) raise NoPatternMatch(errmsg)