From 09d16f741f07cf508b5bd55c329da71b82944c14 Mon Sep 17 00:00:00 2001 From: Aliaksei Urbanski Date: Thu, 1 Feb 2024 05:10:18 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20pytest/mypy=20compatibilit?= =?UTF-8?q?y=20issue=20for=20Python=203.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sviatoslav Sydorenko --- .pre-commit-config.yaml | 2 +- CHANGES/937.contrib.rst | 3 +++ docs/spelling_wordlist.txt | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 CHANGES/937.contrib.rst diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2c11206d..4b6ca327 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -155,7 +155,7 @@ repos: additional_dependencies: - types-docutils - lxml # dep of `--txt-report`, `--cobertura-xml-report` & `--html-report` - - pytest + - pytest < 8 - Sphinx >= 5.3.0, < 6 args: - --python-version=3.7 diff --git a/CHANGES/937.contrib.rst b/CHANGES/937.contrib.rst new file mode 100644 index 00000000..da8c5a29 --- /dev/null +++ b/CHANGES/937.contrib.rst @@ -0,0 +1,3 @@ +The version of pytest is now capped below 8, when running MyPy +against Python 3.7. This pytest release dropped support for +said runtime. diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt index f213cbd4..01a79441 100644 --- a/docs/spelling_wordlist.txt +++ b/docs/spelling_wordlist.txt @@ -71,6 +71,7 @@ pre proxied pyenv pyinstaller +pytest refactor refactored regex