From 3539a63ca9e3453824575452d5c085db7c233923 Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Thu, 30 May 2024 14:34:15 +0000 Subject: [PATCH] chore: update env to python 3.12 --- .github/workflows/linter.yml | 6 +++++- .pre-commit-config.yaml | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 3f345274..117db95e 100755 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -25,7 +25,11 @@ jobs: # super-linter needs the full git history to get the # list of files that changed across commits fetch-depth: 0 - + + - uses: actions/setup-python@v3 + with: + python-version: '3.12' + - name: Pre-commit uses: pre-commit/action@v3.0.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6adfa4af..947d07d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,9 @@ exclude: "CHANGELOG.md|.copier-answers.yml" default_stages: [commit] +default_language_version: + python: python3.12 + ci: autofix_commit_msg: "chore(pre-commit.ci): auto fixes" autoupdate_commit_msg: "chore(pre-commit.ci): pre-commit autoupdate" @@ -53,4 +56,4 @@ repos: rev: v1.10.0 hooks: - id: mypy - additional_dependencies: [homeassistant] + additional_dependencies: [homeassistant==2024.5.1]