From ff8e98cc941743c002fa1d9d84af7f44415e2680 Mon Sep 17 00:00:00 2001 From: Dan Halperin Date: Tue, 23 Jul 2024 09:07:57 -0700 Subject: [PATCH] Upgrade a bunch of things, add Python 3.11-3.12 commit-id:fefd6899 --- .github/workflows/pre-commit-checks.yaml | 6 +++--- .github/workflows/test.yml | 2 +- .pre-commit-config.yaml | 18 +++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pre-commit-checks.yaml b/.github/workflows/pre-commit-checks.yaml index 04f86a3..65947d3 100644 --- a/.github/workflows/pre-commit-checks.yaml +++ b/.github/workflows/pre-commit-checks.yaml @@ -9,6 +9,6 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - - uses: pre-commit/action@v3.0.0 \ No newline at end of file + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: pre-commit/action@v3.0.1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a2df3b6..ab617d8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6de6bdb..f9be32a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,26 +1,26 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: -- repo: https://github.com/psf/black - rev: 22.3.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 24.4.2 hooks: - id: black exclude: netconan/default_reserved_words.py -- repo: https://github.com/pre-commit/mirrors-isort - rev: v5.7.0 + language_version: "3.12" +- repo: https://github.com/PyCQA/isort + rev: 5.13.2 hooks: - id: isort - # args from https://black.readthedocs.io/en/stable/compatible_configs.html#isort - args: ["--multi-line=3", "--trailing-comma", "--force-grid-wrap=0", "--use-parentheses", "--ensure-newline-before-comments", "--line-length=88"] + args: ["--profile=black"] exclude: netconan/default_reserved_words.py -- repo: https://github.com/humitos/mirrors-autoflake.git - rev: v1.3 +- repo: https://github.com/PyCQA/autoflake + rev: v2.3.1 hooks: - id: autoflake args: ["--in-place", "--remove-all-unused-imports", "--remove-unused-variables"] exclude: netconan/default_reserved_words.py - repo: https://github.com/pycqa/flake8 - rev: 3.8.4 + rev: 7.1.0 hooks: - id: flake8 additional_dependencies: [flake8-docstrings]