From 16fbab9362570a4d361c5092b55ad11efe050e2c Mon Sep 17 00:00:00 2001 From: Paolo Melchiorre Date: Wed, 22 Nov 2023 11:37:17 +0100 Subject: [PATCH] Fix minimum required Python version for ruff, black and pyupgrade --- pyproject.toml | 4 ++-- setup/check.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 59f2d8d8f7..721a792ffb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.ruff] line-length = 160 -target-version = 'py37' +target-version = 'py38' select = ['E', 'F'] ignore = ['E741', 'E402', 'E722', 'E401'] builtins = ['_'] @@ -10,7 +10,7 @@ builtins = ['_'] "src/qt/__init__.py" = ["E501"] [tool.black] -target-version = ['py37'] +target-version = ['py38'] [tool.isort] profile = "black" diff --git a/setup/check.py b/setup/check.py index 2b64eb6bd3..352a8d5bfd 100644 --- a/setup/check.py +++ b/setup/check.py @@ -137,4 +137,4 @@ class UpgradeSourceCode(Command): if '/metadata/sources/' in q or '/store/stores/' in q: continue files.append(q) - subprocess.call(['pyupgrade', '--py37-plus'] + files) + subprocess.call(['pyupgrade', '--py38-plus'] + files)