diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7031ec4..9b890a2 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. @@ -43,7 +43,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -54,7 +54,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -68,4 +68,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/poetry-tests.yaml b/.github/workflows/poetry-tests.yaml index c3fd43e..53c2a80 100644 --- a/.github/workflows/poetry-tests.yaml +++ b/.github/workflows/poetry-tests.yaml @@ -11,10 +11,10 @@ jobs: os: [ubuntu-20.04, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup poetry run: pipx install poetry==${{ matrix.poetry-version }} - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: 'poetry' diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index d92eb1c..7b20ccc 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -12,13 +12,13 @@ jobs: # Using an auth approach from https://michaelheap.com/ultimate-guide-github-actions-authentication/ - name: Get Token id: get_workflow_token - uses: peter-murray/workflow-application-token-action@v2 + uses: peter-murray/workflow-application-token-action@v4 with: application_id: ${{ secrets.APPLICATION_ID }} application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }} - name: Release please! - uses: google-github-actions/release-please-action@v3 + uses: google-github-actions/release-please-action@v4 env: APP_TOKEN: ${{ steps.get_workflow_token.outputs.token }} with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c03a16b..a7ecb91 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -46,14 +46,14 @@ repos: - pep8-naming==0.12.1 - repo: https://github.com/asottile/pyupgrade - rev: v3.6.0 + rev: v3.18.0 hooks: - id: pyupgrade args: [--py36-plus] exclude: '^(install|get)-poetry.py$' - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort name: "isort (python)" @@ -64,7 +64,7 @@ repos: args: [--lines-after-imports, "-1"] - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.10.0 hooks: - id: black @@ -84,6 +84,6 @@ repos: # - types-requests - repo: https://github.com/pre-commit/pre-commit - rev: v3.3.3 + rev: v4.0.1 hooks: - id: validate_manifest diff --git a/Dockerfile b/Dockerfile index 2fee0ca..a68d0a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11.4-slim as base +FROM python:3.13.0-slim as base RUN useradd -m app USER app diff --git a/pyproject.toml b/pyproject.toml index 80c83bc..7ba3862 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,16 +7,16 @@ license = "MIT" [tool.poetry.dependencies] python = "^3.8" -flask = "^2.0.0" +flask = "^3.0.0" gunicorn = "^20.0.4" [tool.poetry.group.dev.dependencies] -pytest-bdd = "^6.1.1" +pytest-bdd = "^7.0.0" pytest-xdist = "^3.3.1" -pytest-cov = "^4.1.0" -pytest = "^7.0.0" +pytest-cov = "^5.0.0" +pytest = "^8.0.0" mypy = "^1.3.0" -pre-commit = "^3.3.2" +pre-commit = "^4.0.0" [build-system] requires = ["poetry>=1.0.0"]