From d248c347a99f828503c7da2f45bf2b9a1bee494b Mon Sep 17 00:00:00 2001 From: Sam Morrow Date: Tue, 20 Dec 2022 10:18:45 +0100 Subject: [PATCH] Fix pre-commit lints (#1877) --- .github/workflows/lint.yaml | 2 +- .pre-commit-config.yaml | 2 +- deployments/azure-functions-app-dotnet.yml | 1 - deployments/azure-functions-app-java.yml | 1 - deployments/azure-functions-app-nodejs.yml | 1 - deployments/azure-functions-app-powershell.yml | 1 - deployments/azure-functions-app-python.yml | 1 - 7 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 737e69c97c..263d56949e 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.11 - name: Cache pre-commit uses: actions/cache@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 19bf39d63c..0377bfac7b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: /~https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: trailing-whitespace files: (automation/|ci/|code-scanning/|deployments/|pages/).*(yaml|yml|json)$ diff --git a/deployments/azure-functions-app-dotnet.yml b/deployments/azure-functions-app-dotnet.yml index 7f094eb26e..8b2c23ba8a 100644 --- a/deployments/azure-functions-app-dotnet.yml +++ b/deployments/azure-functions-app-dotnet.yml @@ -61,4 +61,3 @@ jobs: app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }} package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output' publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} # Remove publish-profile to use Azure RBAC - \ No newline at end of file diff --git a/deployments/azure-functions-app-java.yml b/deployments/azure-functions-app-java.yml index a00db935bb..0774544eaf 100644 --- a/deployments/azure-functions-app-java.yml +++ b/deployments/azure-functions-app-java.yml @@ -62,4 +62,3 @@ jobs: package: '${{ env.POM_XML_DIRECTORY }}' # if there are multiple function apps in same project, then this path will be like './${{ env.POM_XML_DIRECTORY }}/target/azure-functions/${{ env.POM_FUNCTIONAPP_NAME }' publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} # Remove publish-profile to use Azure RBAC respect-pom-xml: true - \ No newline at end of file diff --git a/deployments/azure-functions-app-nodejs.yml b/deployments/azure-functions-app-nodejs.yml index 5f174554a9..b8033f0aef 100644 --- a/deployments/azure-functions-app-nodejs.yml +++ b/deployments/azure-functions-app-nodejs.yml @@ -65,4 +65,3 @@ jobs: app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }} package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} # Remove publish-profile to use Azure RBAC - \ No newline at end of file diff --git a/deployments/azure-functions-app-powershell.yml b/deployments/azure-functions-app-powershell.yml index 824b94e04a..505b5afe4e 100644 --- a/deployments/azure-functions-app-powershell.yml +++ b/deployments/azure-functions-app-powershell.yml @@ -48,4 +48,3 @@ jobs: app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }} package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} # Remove publish-profile to use Azure RBAC - \ No newline at end of file diff --git a/deployments/azure-functions-app-python.yml b/deployments/azure-functions-app-python.yml index d387ba2300..0220227a29 100644 --- a/deployments/azure-functions-app-python.yml +++ b/deployments/azure-functions-app-python.yml @@ -64,4 +64,3 @@ jobs: publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} # Remove publish-profile to use Azure RBAC scm-do-build-during-deployment: true enable-oryx-build: true - \ No newline at end of file