From d95a39c50ad3a89bc3074995f5dd6086bd184100 Mon Sep 17 00:00:00 2001 From: Alasdair Gray Date: Fri, 11 Jul 2025 16:22:16 -0400 Subject: [PATCH 1/2] Modernize Azure style checks --- azure/azure_style.yaml | 30 +++++++++++++++--------------- flake8-requirements.txt | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/azure/azure_style.yaml b/azure/azure_style.yaml index 5ccf121..7f2d2b1 100644 --- a/azure/azure_style.yaml +++ b/azure/azure_style.yaml @@ -24,15 +24,15 @@ parameters: jobs: - job: flake8 pool: - vmImage: "ubuntu-22.04" + vmImage: "ubuntu-24.04" timeoutInMinutes: ${{ parameters.TIMEOUT }} continueOnError: ${{ parameters.IGNORE_STYLE }} strategy: matrix: - "py39": - PYTHON_VERSION: "3.9" "py311": - PYTHON_VERSION: "3.11" + PYTHON_VERSION: "3.9" + "py313": + PYTHON_VERSION: "3.13" steps: - checkout: self - checkout: azure_template @@ -59,21 +59,21 @@ jobs: - job: black pool: - vmImage: "ubuntu-22.04" + vmImage: "ubuntu-24.04" timeoutInMinutes: ${{ parameters.TIMEOUT }} continueOnError: ${{ parameters.IGNORE_STYLE }} steps: - task: UsePythonVersion@0 inputs: - versionSpec: "3.9" + versionSpec: "3.11" - script: | pip install wheel - pip install black==23.1.0 - black . --check --diff -l 120 --target-version py39 --target-version py311 + pip install black==25.1.0 + black . --check --diff -l 120 --target-version py31 --target-version py313 - job: isort pool: - vmImage: "ubuntu-22.04" + vmImage: "ubuntu-24.04" timeoutInMinutes: ${{ parameters.TIMEOUT }} condition: ${{ parameters.ISORT }} steps: @@ -81,7 +81,7 @@ jobs: - checkout: azure_template - task: UsePythonVersion@0 inputs: - versionSpec: "3.9" + versionSpec: "3.11" - script: | cd ${{ parameters.REPO_NAME }} @@ -96,7 +96,7 @@ jobs: - job: pylint pool: - vmImage: "ubuntu-22.04" + vmImage: "ubuntu-24.04" timeoutInMinutes: ${{ parameters.TIMEOUT }} condition: ${{ parameters.PYLINT }} steps: @@ -104,7 +104,7 @@ jobs: - checkout: azure_template - task: UsePythonVersion@0 inputs: - versionSpec: "3.9" + versionSpec: "3.11" - script: | cd ${{ parameters.REPO_NAME }} @@ -116,7 +116,7 @@ jobs: - job: clang_format pool: - vmImage: "ubuntu-22.04" + vmImage: "ubuntu-24.04" timeoutInMinutes: ${{ parameters.TIMEOUT }} condition: ${{ parameters.CLANG_FORMAT }} steps: @@ -139,7 +139,7 @@ jobs: - job: fprettify pool: - vmImage: "ubuntu-22.04" + vmImage: "ubuntu-24.04" timeoutInMinutes: ${{ parameters.TIMEOUT }} condition: ${{ parameters.FPRETTIFY }} steps: @@ -147,7 +147,7 @@ jobs: - checkout: azure_template - task: UsePythonVersion@0 inputs: - versionSpec: "3.9" + versionSpec: "3.11" - script: | cd ${{ parameters.REPO_NAME }} diff --git a/flake8-requirements.txt b/flake8-requirements.txt index 6be24e5..39b8987 100644 --- a/flake8-requirements.txt +++ b/flake8-requirements.txt @@ -1,4 +1,4 @@ -flake8==5.0.4 +flake8==7.3.0 flake8-bugbear flake8-builtins flake8-docstrings From a4b94703d858f320715871f1d9b5bba10cf6ff9e Mon Sep 17 00:00:00 2001 From: Alasdair Gray Date: Fri, 11 Jul 2025 16:25:31 -0400 Subject: [PATCH 2/2] typo --- azure/azure_style.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure/azure_style.yaml b/azure/azure_style.yaml index 7f2d2b1..96b5eb3 100644 --- a/azure/azure_style.yaml +++ b/azure/azure_style.yaml @@ -30,7 +30,7 @@ jobs: strategy: matrix: "py311": - PYTHON_VERSION: "3.9" + PYTHON_VERSION: "3.11" "py313": PYTHON_VERSION: "3.13" steps: