From be6f6bbfac7741adc7d466241e213100934ee162 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 11 Feb 2023 22:40:50 +0200 Subject: [PATCH] Update linters --- .github/workflows/python-lint.yml | 4 ++-- .pre-commit-config.yaml | 6 +++--- dev-requirements.txt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml index e521b801..811bb548 100644 --- a/.github/workflows/python-lint.yml +++ b/.github/workflows/python-lint.yml @@ -9,14 +9,14 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: - python-version: "3.10" + python-version: "3.11" - uses: isort/isort-action@master with: sortPaths: "./mautrix_telegram" - uses: psf/black@stable with: src: "./mautrix_telegram" - version: "22.3.0" + version: "23.1.0" - name: pre-commit run: | pip install pre-commit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 64c05401..8dc90be3 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.1.0 + rev: v4.4.0 hooks: - id: trailing-whitespace exclude_types: [markdown] @@ -8,13 +8,13 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 23.1.0 hooks: - id: black language_version: python3 files: ^mautrix_telegram/.*\.pyi?$ - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort files: ^mautrix_telegram/.*\.pyi?$ diff --git a/dev-requirements.txt b/dev-requirements.txt index e513c0df..5cd14c23 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,3 +1,3 @@ pre-commit>=2.10.1,<3 isort>=5.10.1,<6 -black>=22.3,<23 +black>=23,<24