diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38130c4af2..3ae78986b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.10 - name: Install calibre dependencies run: diff --git a/pyproject.toml b/pyproject.toml index ff7d381234..0c049a82fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [project] -requires-python = ">=3.8" +requires-python = ">=3.10" [tool.ruff] line-length = 160 -target-version = 'py38' +target-version = 'py310' builtins = ['_', 'I', 'P'] include = ['*.py', '*.recipe'] exclude = [ diff --git a/setup/check.py b/setup/check.py index 38fe5c7fc4..aa73a07059 100644 --- a/setup/check.py +++ b/setup/check.py @@ -200,4 +200,4 @@ class UpgradeSourceCode(Command): if '/metadata/sources/' in q or '/store/stores/' in q: continue files.append(q) - subprocess.call(['pyupgrade', '--py38-plus'] + files) + subprocess.call(['pyupgrade', '--py310-plus'] + files)