diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 375a523..53472cc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,20 +9,20 @@ on: jobs: lint: name: Static analysis - uses: less-action/reusables/.github/workflows/pre-commit.yaml@v6 + uses: less-action/reusables/.github/workflows/pre-commit.yaml@v8 with: - python-version: "3.10" + python-version: "3.11" check-build: name: Check packaging metadata - uses: less-action/reusables/.github/workflows/python-test-build.yaml@v6 + uses: less-action/reusables/.github/workflows/python-test-build.yaml@v8 test: name: Test runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", "3.11-dev"] + python-version: ["3.10", "3.11"] steps: - uses: actions/checkout@v3 - name: Set up Python @@ -36,7 +36,7 @@ jobs: - run: coverage run -m pytest - run: coverage report -m && coverage xml - name: Report coverage - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 with: file: coverage.xml fail_ci_if_error: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b2b4e7b..94ed9f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,8 @@ default_language_version: - python: python3.10 + python: python3.11 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.3.0" + rev: "v4.4.0" hooks: - id: check-case-conflict - id: check-merge-conflict @@ -11,13 +11,13 @@ repos: - id: debug-statements - id: detect-private-key - repo: https://github.com/asottile/pyupgrade - rev: "v2.38.0" + rev: "v3.3.1" hooks: - id: pyupgrade args: - --py310-plus - - repo: https://github.com/pycqa/autoflake - rev: "v1.5.3" + - repo: https://github.com/myint/autoflake + rev: "v2.0.1" hooks: - id: autoflake args: @@ -25,31 +25,31 @@ repos: - --remove-all-unused-imports - --ignore-init-module-imports - repo: https://github.com/pycqa/isort - rev: "5.10.1" + rev: "5.12.0" hooks: - id: isort - repo: https://github.com/psf/black - rev: "22.8.0" + rev: "23.1.0" hooks: - id: black - repo: https://github.com/asottile/blacken-docs - rev: "v1.12.1" + rev: "1.13.0" hooks: - id: blacken-docs - additional_dependencies: ["black==22.8.0"] - - repo: https://gitlab.com/pycqa/flake8 - rev: "3.9.2" + additional_dependencies: ["black==23.1.0"] + - repo: https://github.com/pycqa/flake8 + rev: "6.0.0" hooks: - id: flake8 additional_dependencies: - flake8-bugbear==22.9.11 - flake8-comprehensions==3.10.0 - repo: https://github.com/sirosen/check-jsonschema - rev: "0.18.3" + rev: "0.21.0" hooks: - id: check-github-workflows - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v0.971" + rev: "v1.0.0" hooks: - id: mypy args: ["--strict"] @@ -57,7 +57,7 @@ repos: - pytest==7.1.3 - types-setuptools==65.3.0 - repo: https://github.com/mgedmin/check-manifest - rev: "0.48" + rev: "0.49" hooks: - id: check-manifest args: ["--no-build-isolation"]