From 939d51205ce1a7ac8ef679b1d28d9fa290495ebe Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 8 Dec 2023 20:41:49 -0800 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#406) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/check.yml | 12 +++++++----- .github/workflows/release.yml | 2 +- .pre-commit-config.yaml | 11 +++-------- pyproject.toml | 13 ++++++------- tox.ini | 12 ++++++------ 5 files changed, 23 insertions(+), 27 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0a8d749..2fc0144 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,6 +1,8 @@ name: check on: + workflow_dispatch: push: + branches: "main" tags-ignore: ["**"] pull_request: schedule: @@ -18,7 +20,7 @@ jobs: fail-fast: false matrix: py: - - "3.12.0-beta.2" + - "3.12" - "3.11" - "3.10" - "3.9" @@ -27,7 +29,7 @@ jobs: - name: Setup python for tox uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install tox run: python -m pip install tox - uses: actions/checkout@v4 @@ -76,7 +78,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install tox run: python -m pip install tox - name: Setup coverage tool @@ -112,10 +114,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup Python "3.11" + - name: Setup Python "3.12" uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install tox run: python -m pip install tox - name: Setup test suite diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d24899e..3f645fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - name: Setup python to build package uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install build run: python -m pip install build - uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dae4baa..7588736 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.6" + rev: "v0.1.7" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -19,15 +19,10 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.5.1" + rev: "1.5.3" hooks: - id: pyproject-fmt - additional_dependencies: ["tox>=4.8"] - - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.1.0" - hooks: - - id: prettier - args: ["--print-width=120", "--prose-wrap=always"] + additional_dependencies: ["tox>=4.11.4"] - repo: meta hooks: - id: check-hooks-apply diff --git a/pyproject.toml b/pyproject.toml index 3567361..e593334 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] build-backend = "hatchling.build" requires = [ - "hatch-vcs>=0.3", + "hatch-vcs>=0.4", "hatchling>=1.18", ] @@ -41,20 +41,19 @@ dependencies = [ "Sphinx>=7.1.2", ] optional-dependencies.docs = [ - "furo>=2023.7.26", - "sphinx>=7.1.2", + "furo>=2023.9.10", ] optional-dependencies.numpy = [ "nptyping>=2.5", ] optional-dependencies.testing = [ "covdefaults>=2.3", - "coverage>=7.3", - "diff-cover>=7.7", - "pytest>=7.4", + "coverage>=7.3.2", + "diff-cover>=8.0.1", + "pytest>=7.4.3", "pytest-cov>=4.1", "sphobjinv>=2.3.1", - "typing-extensions>=4.7.1", + "typing-extensions>=4.8", ] urls.Changelog = "https://github.com/tox-dev/sphinx-autodoc-typehints/blob/main/CHANGELOG.md" urls.Homepage = "https://github.com/tox-dev/sphinx-autodoc-typehints" diff --git a/tox.ini b/tox.ini index 489a9ba..495e497 100644 --- a/tox.ini +++ b/tox.ini @@ -39,7 +39,7 @@ commands = description = format the code base to adhere to our styles, and complain about what we cannot do automatically skip_install = true deps = - pre-commit>=3.3.3 + pre-commit>=3.5 commands = pre-commit run --all-files --show-diff-on-failure @@ -51,8 +51,8 @@ extras = [testenv:type] description = run type check on code base deps = - mypy==1.4.1 - types-docutils>=0.20.0.2 + mypy==1.7.1 + types-docutils>=0.20.0.3 set_env = {tty:MYPY_FORCE_COLOR = 1} commands = @@ -64,8 +64,8 @@ description = combine coverage files and generate diff (against DIFF_AGAINST def skip_install = true deps = covdefaults>=2.3 - coverage>=7.3 - diff-cover>=7.7 + coverage>=7.3.2 + diff-cover>=8.0.1 extras = parallel_show_output = true pass_env = @@ -90,7 +90,7 @@ depends = description = check that the long description is valid (need for PyPI) skip_install = true deps = - build[virtualenv]>=0.10 + build[virtualenv]>=1.0.3 twine>=4.0.2 extras = commands =