From 2542dad85a9a8b6fdd3b9029df4c6e64fb9c0def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Tue, 17 Sep 2024 12:05:56 -0700 Subject: [PATCH 01/21] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0631c88e..081c7b73 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,6 @@ status](https://readthedocs.org/projects/py-filelock/badge/?version=latest)](htt [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Downloads](https://static.pepy.tech/badge/filelock/month)](https://pepy.tech/project/filelock) -[![check](https://github.com/tox-dev/py-filelock/actions/workflows/check.yml/badge.svg)](https://github.com/tox-dev/py-filelock/actions/workflows/check.yml) +[![check](https://github.com/tox-dev/py-filelock/actions/workflows/check.yaml/badge.svg)](https://github.com/tox-dev/py-filelock/actions/workflows/check.yaml) For more information checkout the [official documentation](https://py-filelock.readthedocs.io/en/latest/index.html). From b825dada512bdea35d6b59602a8c8eb656c8460d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:57:12 -0700 Subject: [PATCH 02/21] [pre-commit.ci] pre-commit autoupdate (#365) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43c6308b..4c2089cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,16 +15,16 @@ repos: - id: codespell additional_dependencies: ["tomli>=2.0.1"] - repo: https://github.com/tox-dev/tox-ini-fmt - rev: "1.4.0" + rev: "1.4.1" hooks: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.2.3" + rev: "2.2.4" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.6.5" + rev: "v0.6.7" hooks: - id: ruff-format - id: ruff From 4b723c9b98560093f040b9a6e0d8f0f22e24af2d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Sep 2024 00:01:33 +0000 Subject: [PATCH 03/21] Bump pypa/gh-action-pypi-publish from 1.10.1 to 1.10.2 (#364) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a6593a7d..6aff124a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,6 +43,6 @@ jobs: name: ${{ env.dists-artifact-name }} path: dist/ - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.10.1 + uses: pypa/gh-action-pypi-publish@v1.10.2 with: attestations: true From 6481da88c92cde966779acdfd286d62721f0b807 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 20:28:58 -0700 Subject: [PATCH 04/21] [pre-commit.ci] pre-commit autoupdate (#366) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c2089cc..463affa1 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/python-jsonschema/check-jsonschema - rev: 0.29.2 + rev: 0.29.3 hooks: - id: check-github-workflows args: ["--verbose"] @@ -24,7 +24,7 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.6.7" + rev: "v0.6.8" hooks: - id: ruff-format - id: ruff From ceb54483fe6371f5b614d8e6b96d6c0c378d6157 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 19:56:34 +0200 Subject: [PATCH 05/21] [pre-commit.ci] pre-commit autoupdate (#369) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.8 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.8...v0.6.9) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 463affa1..23726edf 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.6.0 + rev: v5.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -24,7 +24,7 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.6.8" + rev: "v0.6.9" hooks: - id: ruff-format - id: ruff From ed1f4776b813be0b74dd7073ee67405bb0c0f313 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 12:00:53 -0700 Subject: [PATCH 06/21] Bump pypa/gh-action-pypi-publish from 1.10.2 to 1.10.3 (#367) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6aff124a..6ab95838 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,6 +43,6 @@ jobs: name: ${{ env.dists-artifact-name }} path: dist/ - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.10.2 + uses: pypa/gh-action-pypi-publish@v1.10.3 with: attestations: true From 30281d20cf8bed6d9136acff6727eb07c3e889e0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 10:39:46 -0700 Subject: [PATCH 07/21] [pre-commit.ci] pre-commit autoupdate (#370) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23726edf..7bc1adcc 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/python-jsonschema/check-jsonschema - rev: 0.29.3 + rev: 0.29.4 hooks: - id: check-github-workflows args: ["--verbose"] @@ -20,7 +20,7 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.2.4" + rev: "2.3.0" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit From 170c1a97186743e2fbb5092551f34952c93e9ea8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:37:15 -0700 Subject: [PATCH 08/21] [pre-commit.ci] pre-commit autoupdate (#371) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7bc1adcc..8fd5c0f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,11 +20,11 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.3.0" + rev: "2.4.3" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.6.9" + rev: "v0.7.0" hooks: - id: ruff-format - id: ruff From 56470bce989f38482c23d80dea8cf37963d50775 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:59:43 -0700 Subject: [PATCH 09/21] [pre-commit.ci] pre-commit autoupdate (#372) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8fd5c0f1..4cf21a14 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,11 +20,11 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.4.3" + rev: "v2.4.3" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.7.0" + rev: "v0.7.1" hooks: - id: ruff-format - id: ruff From eb2dc968c6d7fffed4cf6909189a4d98e6456b68 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 30 Oct 2024 08:07:23 -0700 Subject: [PATCH 10/21] Bump pypa/gh-action-pypi-publish from 1.10.3 to 1.11.0 (#373) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6ab95838..4daeb320 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,6 +43,6 @@ jobs: name: ${{ env.dists-artifact-name }} path: dist/ - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.10.3 + uses: pypa/gh-action-pypi-publish@v1.11.0 with: attestations: true From f3293da843213a8425251914a753e978067deffc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 09:29:31 -0800 Subject: [PATCH 11/21] Bump pypa/gh-action-pypi-publish from 1.11.0 to 1.12.2 (#376) Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.11.0 to 1.12.2. - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.11.0...v1.12.2) --- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4daeb320..38d09013 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,6 +43,6 @@ jobs: name: ${{ env.dists-artifact-name }} path: dist/ - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.11.0 + uses: pypa/gh-action-pypi-publish@v1.12.2 with: attestations: true From 2e1a1b228dcf9ab82d93be164573def7c630ae54 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 09:29:36 -0800 Subject: [PATCH 12/21] [pre-commit.ci] pre-commit autoupdate (#374) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: v2.4.3 → v2.5.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.4.3...v2.5.0) - [github.com/astral-sh/ruff-pre-commit: v0.7.1 → v0.7.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.1...v0.7.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4cf21a14..fcf81652 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,11 +20,11 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.4.3" + rev: "v2.5.0" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.7.1" + rev: "v0.7.2" hooks: - id: ruff-format - id: ruff From ee4c7ba1c863509a4fa9a8a992c7ec41747e1f96 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 09:47:05 -0800 Subject: [PATCH 13/21] [pre-commit.ci] pre-commit autoupdate (#377) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.7.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.2...v0.7.3) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fcf81652..84d93ac5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.7.2" + rev: "v0.7.3" hooks: - id: ruff-format - id: ruff From 07c2840b805d1dd2400ee1b6b193dd3c9bf1f7c0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:30:45 -0800 Subject: [PATCH 14/21] [pre-commit.ci] pre-commit autoupdate (#379) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.3 → v0.7.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.3...v0.7.4) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 84d93ac5..b88f80dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.7.3" + rev: "v0.7.4" hooks: - id: ruff-format - id: ruff From fb2a4e26c6b391e78ca35d0959e854e9c174fc2b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 08:26:06 -0800 Subject: [PATCH 15/21] Bump astral-sh/setup-uv from 3 to 4 (#381) Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 3 to 4. - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/v3...v4) --- updated-dependencies: - dependency-name: astral-sh/setup-uv dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/check.yaml | 6 +++--- .github/workflows/release.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 15ad3a6d..93055b23 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 - name: Install the latest version of uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v4 with: enable-cache: true cache-dependency-glob: "pyproject.toml" @@ -87,7 +87,7 @@ jobs: with: fetch-depth: 0 - name: Install the latest version of uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v4 with: enable-cache: true cache-dependency-glob: "pyproject.toml" @@ -137,7 +137,7 @@ jobs: with: fetch-depth: 0 - name: Install the latest version of uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v4 with: enable-cache: true cache-dependency-glob: "pyproject.toml" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 38d09013..4fb4f4f5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,7 +14,7 @@ jobs: with: fetch-depth: 0 - name: Install the latest version of uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v4 with: enable-cache: true cache-dependency-glob: "pyproject.toml" From d4feb5a15974754a8fcd7893c196f229652a05ca Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 09:25:02 -0800 Subject: [PATCH 16/21] [pre-commit.ci] pre-commit autoupdate (#382) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.4...v0.8.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b88f80dd..70ff53f7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.7.4" + rev: "v0.8.0" hooks: - id: ruff-format - id: ruff From 57f488ff8fdc2193572efe102408fb63cfefe4e4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 12:57:15 +0100 Subject: [PATCH 17/21] [pre-commit.ci] pre-commit autoupdate (#383) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/python-jsonschema/check-jsonschema: 0.29.4 → 0.30.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.4...0.30.0) - [github.com/astral-sh/ruff-pre-commit: v0.8.0 → v0.8.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.0...v0.8.1) - [github.com/rbubley/mirrors-prettier: v3.3.3 → v3.4.1](https://github.com/rbubley/mirrors-prettier/compare/v3.3.3...v3.4.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 6 +++--- src/filelock/_api.py | 4 ++-- src/filelock/_unix.py | 2 +- src/filelock/_windows.py | 2 +- src/filelock/asyncio.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70ff53f7..203a6b2b 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/python-jsonschema/check-jsonschema - rev: 0.29.4 + rev: 0.30.0 hooks: - id: check-github-workflows args: ["--verbose"] @@ -24,13 +24,13 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.8.0" + rev: "v0.8.1" hooks: - id: ruff-format - id: ruff args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"] - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.3.3" # Use the sha / tag you want to point at + rev: "v3.4.1" # Use the sha / tag you want to point at hooks: - id: prettier additional_dependencies: diff --git a/src/filelock/_api.py b/src/filelock/_api.py index 771a559a..8fde69a0 100644 --- a/src/filelock/_api.py +++ b/src/filelock/_api.py @@ -106,7 +106,7 @@ def __call__( # noqa: PLR0913 if passed_param != set_param } if not non_matching_params: - return cast(BaseFileLock, instance) + return cast("BaseFileLock", instance) # parameters do not match; raise error msg = "Singleton lock instances cannot be initialized with differing arguments" @@ -136,7 +136,7 @@ def __call__( # noqa: PLR0913 if is_singleton: cls._instances[str(lock_file)] = instance # type: ignore[attr-defined] - return cast(BaseFileLock, instance) + return cast("BaseFileLock", instance) class BaseFileLock(contextlib.ContextDecorator, metaclass=FileLockMeta): diff --git a/src/filelock/_unix.py b/src/filelock/_unix.py index 4ae1fbe9..04f590da 100644 --- a/src/filelock/_unix.py +++ b/src/filelock/_unix.py @@ -56,7 +56,7 @@ def _release(self) -> None: # Do not remove the lockfile: # https://github.com/tox-dev/py-filelock/issues/31 # https://stackoverflow.com/questions/17708885/flock-removing-locked-file-without-race-condition - fd = cast(int, self._context.lock_file_fd) + fd = cast("int", self._context.lock_file_fd) self._context.lock_file_fd = None fcntl.flock(fd, fcntl.LOCK_UN) os.close(fd) diff --git a/src/filelock/_windows.py b/src/filelock/_windows.py index 8db55dcb..348251d1 100644 --- a/src/filelock/_windows.py +++ b/src/filelock/_windows.py @@ -40,7 +40,7 @@ def _acquire(self) -> None: self._context.lock_file_fd = fd def _release(self) -> None: - fd = cast(int, self._context.lock_file_fd) + fd = cast("int", self._context.lock_file_fd) self._context.lock_file_fd = None msvcrt.locking(fd, msvcrt.LK_UNLCK, 1) os.close(fd) diff --git a/src/filelock/asyncio.py b/src/filelock/asyncio.py index 0fdd8f79..252de203 100644 --- a/src/filelock/asyncio.py +++ b/src/filelock/asyncio.py @@ -95,7 +95,7 @@ def __call__( # type: ignore[override] # noqa: PLR0913 run_in_executor=run_in_executor, executor=executor, ) - return cast(BaseAsyncFileLock, instance) + return cast("BaseAsyncFileLock", instance) class BaseAsyncFileLock(BaseFileLock, metaclass=AsyncFileLockMeta): From 46dddc89672d1646156c61c4db0a664ba4886d2f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 20:32:21 -0800 Subject: [PATCH 18/21] [pre-commit.ci] pre-commit autoupdate (#385) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.1 → v0.8.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.1...v0.8.3) - [github.com/rbubley/mirrors-prettier: v3.4.1 → v3.4.2](https://github.com/rbubley/mirrors-prettier/compare/v3.4.1...v3.4.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 203a6b2b..7418e15c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,13 +24,13 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.8.1" + rev: "v0.8.3" hooks: - id: ruff-format - id: ruff args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"] - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.4.1" # Use the sha / tag you want to point at + rev: "v3.4.2" # Use the sha / tag you want to point at hooks: - id: prettier additional_dependencies: From 79a958358f79ea3ae0ae1bc7ee7ce6a96a5ef407 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 20:32:26 -0800 Subject: [PATCH 19/21] Bump pypa/gh-action-pypi-publish from 1.12.2 to 1.12.3 (#386) Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.12.2 to 1.12.3. - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.12.2...v1.12.3) --- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4fb4f4f5..5370c90a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,6 +43,6 @@ jobs: name: ${{ env.dists-artifact-name }} path: dist/ - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.12.2 + uses: pypa/gh-action-pypi-publish@v1.12.3 with: attestations: true From 23a984803c969a75530ba8c2c5fb5a6b73686762 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 29 Dec 2024 17:34:58 -0800 Subject: [PATCH 20/21] Bump astral-sh/setup-uv from 4 to 5 (#387) Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 4 to 5. - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/v4...v5) --- updated-dependencies: - dependency-name: astral-sh/setup-uv dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/check.yaml | 6 +++--- .github/workflows/release.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 93055b23..1a0413f0 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 - name: Install the latest version of uv - uses: astral-sh/setup-uv@v4 + uses: astral-sh/setup-uv@v5 with: enable-cache: true cache-dependency-glob: "pyproject.toml" @@ -87,7 +87,7 @@ jobs: with: fetch-depth: 0 - name: Install the latest version of uv - uses: astral-sh/setup-uv@v4 + uses: astral-sh/setup-uv@v5 with: enable-cache: true cache-dependency-glob: "pyproject.toml" @@ -137,7 +137,7 @@ jobs: with: fetch-depth: 0 - name: Install the latest version of uv - uses: astral-sh/setup-uv@v4 + uses: astral-sh/setup-uv@v5 with: enable-cache: true cache-dependency-glob: "pyproject.toml" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5370c90a..c59bad8d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,7 +14,7 @@ jobs: with: fetch-depth: 0 - name: Install the latest version of uv - uses: astral-sh/setup-uv@v4 + uses: astral-sh/setup-uv@v5 with: enable-cache: true cache-dependency-glob: "pyproject.toml" From 5eb02b2580122e6f42fb8b7a4e08cededcb22b1c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 Jan 2025 12:03:27 -0800 Subject: [PATCH 21/21] Drop 3.8 (#388) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/python-jsonschema/check-jsonschema: 0.30.0 → 0.31.0](https://github.com/python-jsonschema/check-jsonschema/compare/0.30.0...0.31.0) - [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.9.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.3...v0.9.2) * Fix failures and drop 3.8 Signed-off-by: Bernát Gábor --------- Signed-off-by: Bernát Gábor Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor --- .github/workflows/check.yaml | 13 ++++++++++++- .pre-commit-config.yaml | 10 +++++----- pyproject.toml | 23 ++++++++++------------- tests/test_async_filelock.py | 14 +++++++------- tests/test_filelock.py | 28 +++++++++++++++------------- tox.ini | 19 +++++++++---------- 6 files changed, 58 insertions(+), 49 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 1a0413f0..08b5aba9 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -26,7 +26,6 @@ jobs: - "3.11" - "3.10" - "3.9" - - "3.8" os: - ubuntu-latest - windows-latest @@ -52,17 +51,21 @@ jobs: run: uv python install --python-preference only-managed ${{ matrix.py }} - name: Setup test suite run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.py }} + env: + UV_PYTHON_PREFERENCE: only-managed - name: Run test suite if: ${{ !startsWith(matrix.py, 'pypy')}} run: tox run --skip-pkg-install -e ${{ matrix.py }} env: PYTEST_ADDOPTS: "-vv --durations=20" DIFF_AGAINST: HEAD + UV_PYTHON_PREFERENCE: only-managed - name: Run test suite without coverage if: ${{ startsWith(matrix.py, 'pypy')}} run: tox run --skip-pkg-install -e ${{ matrix.py }} -- env: PYTEST_ADDOPTS: "-vv --durations=20" + UV_PYTHON_PREFERENCE: only-managed - name: Rename coverage report file if: ${{ !startsWith(matrix.py, 'pypy')}} run: | @@ -102,6 +105,8 @@ jobs: run: uv build --python 3.13 --python-preference only-managed --wheel . --out-dir dist - name: Setup coverage tool run: tox -e coverage --notest + env: + UV_PYTHON_PREFERENCE: only-managed - name: Download coverage data uses: actions/download-artifact@v4 with: @@ -110,6 +115,8 @@ jobs: merge-multiple: true - name: Combine and report coverage run: tox -e coverage --skip-pkg-install + env: + UV_PYTHON_PREFERENCE: only-managed - name: Upload HTML report uses: actions/upload-artifact@v4 with: @@ -150,5 +157,9 @@ jobs: run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv - name: Setup test suite run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.tox_env }} + env: + UV_PYTHON_PREFERENCE: only-managed - name: Run test suite run: tox run --skip-pkg-install -e ${{ matrix.tox_env }} + env: + UV_PYTHON_PREFERENCE: only-managed diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7418e15c..acc1c5e8 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/python-jsonschema/check-jsonschema - rev: 0.30.0 + rev: 0.31.0 hooks: - id: check-github-workflows args: ["--verbose"] @@ -13,9 +13,9 @@ repos: rev: v2.3.0 hooks: - id: codespell - additional_dependencies: ["tomli>=2.0.1"] + additional_dependencies: ["tomli>=2.2.1"] - repo: https://github.com/tox-dev/tox-ini-fmt - rev: "1.4.1" + rev: "1.5.0" hooks: - id: tox-ini-fmt args: ["-p", "fix"] @@ -24,7 +24,7 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.8.3" + rev: "v0.9.2" hooks: - id: ruff-format - id: ruff @@ -34,7 +34,7 @@ repos: hooks: - id: prettier additional_dependencies: - - prettier@3.3.3 + - prettier@3.4.2 - "@prettier/plugin-xml@3.4.1" - repo: meta hooks: diff --git a/pyproject.toml b/pyproject.toml index 259d8e98..64a7ef16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ build-backend = "hatchling.build" requires = [ "hatch-vcs>=0.4", - "hatchling>=1.25", + "hatchling>=1.27", ] [project] @@ -20,7 +20,7 @@ license = "Unlicense" maintainers = [ { name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }, ] -requires-python = ">=3.8" +requires-python = ">=3.9" classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", @@ -28,7 +28,6 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -43,19 +42,19 @@ dynamic = [ ] optional-dependencies.docs = [ "furo>=2024.8.6", - "sphinx>=8.0.2", - "sphinx-autodoc-typehints>=2.4.1", + "sphinx>=8.1.3", + "sphinx-autodoc-typehints>=3", ] optional-dependencies.testing = [ "covdefaults>=2.3", - "coverage>=7.6.1", - "diff-cover>=9.2", - "pytest>=8.3.3", - "pytest-asyncio>=0.24", - "pytest-cov>=5", + "coverage>=7.6.10", + "diff-cover>=9.2.1", + "pytest>=8.3.4", + "pytest-asyncio>=0.25.2", + "pytest-cov>=6", "pytest-mock>=3.14", "pytest-timeout>=2.3.1", - "virtualenv>=20.26.4", + "virtualenv>=20.28.1", ] optional-dependencies.typing = [ "typing-extensions>=4.12.2; python_version<'3.11'", @@ -75,7 +74,6 @@ build.targets.sdist.include = [ version.source = "vcs" [tool.ruff] -target-version = "py38" line-length = 120 format.preview = true format.docstring-code-line-length = 100 @@ -84,7 +82,6 @@ lint.select = [ "ALL", ] lint.ignore = [ - "ANN101", # Missing type annotation for `self` in method "COM812", # Conflict with formatter "CPY", # No copyright statements "D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible diff --git a/tests/test_async_filelock.py b/tests/test_async_filelock.py index 73eef145..643c6677 100644 --- a/tests/test_async_filelock.py +++ b/tests/test_async_filelock.py @@ -91,32 +91,32 @@ async def test_non_blocking(lock_type: type[BaseAsyncFileLock], tmp_path: Path) assert not lock_5.is_locked # try to acquire lock 2 - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): await lock_2.acquire(blocking=False) assert not lock_2.is_locked assert lock_1.is_locked # try to acquire pre-parametrized `blocking=False` lock 3 with `acquire` - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): await lock_3.acquire() assert not lock_3.is_locked assert lock_1.is_locked # try to acquire pre-parametrized `blocking=False` lock 3 with context manager - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): async with lock_3: pass assert not lock_3.is_locked assert lock_1.is_locked # try to acquire pre-parametrized `timeout=0` lock 4 with `acquire` - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): await lock_4.acquire() assert not lock_4.is_locked assert lock_1.is_locked # try to acquire pre-parametrized `timeout=0` lock 4 with context manager - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): async with lock_4: pass assert not lock_4.is_locked @@ -124,13 +124,13 @@ async def test_non_blocking(lock_type: type[BaseAsyncFileLock], tmp_path: Path) # blocking precedence over timeout # try to acquire pre-parametrized `timeout=-1,blocking=False` lock 5 with `acquire` - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): await lock_5.acquire() assert not lock_5.is_locked assert lock_1.is_locked # try to acquire pre-parametrized `timeout=-1,blocking=False` lock 5 with context manager - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): async with lock_5: pass assert not lock_5.is_locked diff --git a/tests/test_filelock.py b/tests/test_filelock.py index 8808bf6f..b071396e 100644 --- a/tests/test_filelock.py +++ b/tests/test_filelock.py @@ -12,7 +12,7 @@ from pathlib import Path, PurePath from stat import S_IWGRP, S_IWOTH, S_IWUSR, filemode from types import TracebackType -from typing import TYPE_CHECKING, Any, Callable, Iterator, Tuple, Type, Union +from typing import TYPE_CHECKING, Any, Callable, Union from uuid import uuid4 from weakref import WeakValueDictionary @@ -21,6 +21,8 @@ from filelock import BaseFileLock, FileLock, SoftFileLock, Timeout, UnixFileLock, WindowsFileLock if TYPE_CHECKING: + from collections.abc import Iterator + from pytest_mock import MockerFixture @@ -218,7 +220,7 @@ def test_nested_contruct(lock_type: type[BaseFileLock], tmp_path: Path) -> None: assert not lock_1.is_locked -_ExcInfoType = Union[Tuple[Type[BaseException], BaseException, TracebackType], Tuple[None, None, None]] +_ExcInfoType = Union[tuple[type[BaseException], BaseException, TracebackType], tuple[None, None, None]] class ExThread(threading.Thread): @@ -304,7 +306,7 @@ def test_timeout(lock_type: type[BaseFileLock], tmp_path: Path) -> None: assert not lock_2.is_locked # try to acquire lock 2 - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): lock_2.acquire(timeout=0.1) assert not lock_2.is_locked assert lock_1.is_locked @@ -333,44 +335,44 @@ def test_non_blocking(lock_type: type[BaseFileLock], tmp_path: Path) -> None: assert not lock_5.is_locked # try to acquire lock 2 - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): lock_2.acquire(blocking=False) assert not lock_2.is_locked assert lock_1.is_locked # try to acquire pre-parametrized `blocking=False` lock 3 with `acquire` - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): lock_3.acquire() assert not lock_3.is_locked assert lock_1.is_locked # try to acquire pre-parametrized `blocking=False` lock 3 with context manager - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."), lock_3: + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."), lock_3: pass assert not lock_3.is_locked assert lock_1.is_locked # try to acquire pre-parametrized `timeout=0` lock 4 with `acquire` - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): lock_4.acquire() assert not lock_4.is_locked assert lock_1.is_locked # try to acquire pre-parametrized `timeout=0` lock 4 with context manager - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."), lock_4: + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."), lock_4: pass assert not lock_4.is_locked assert lock_1.is_locked # blocking precedence over timeout # try to acquire pre-parametrized `timeout=-1,blocking=False` lock 5 with `acquire` - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): lock_5.acquire() assert not lock_5.is_locked assert lock_1.is_locked # try to acquire pre-parametrized `timeout=-1,blocking=False` lock 5 with context manager - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."), lock_5: + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."), lock_5: pass assert not lock_5.is_locked assert lock_1.is_locked @@ -397,7 +399,7 @@ def test_default_timeout(lock_type: type[BaseFileLock], tmp_path: Path) -> None: assert not lock_2.is_locked # try to acquire lock 2 - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): lock_2.acquire() assert not lock_2.is_locked assert lock_1.is_locked @@ -405,7 +407,7 @@ def test_default_timeout(lock_type: type[BaseFileLock], tmp_path: Path) -> None: lock_2.timeout = 0 assert lock_2.timeout == 0 - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): lock_2.acquire() assert not lock_2.is_locked assert lock_1.is_locked @@ -459,7 +461,7 @@ def test_del(lock_type: type[BaseFileLock], tmp_path: Path) -> None: assert not lock_2.is_locked # try to acquire lock 2 - with pytest.raises(Timeout, match="The file lock '.*' could not be acquired."): + with pytest.raises(Timeout, match=r"The file lock '.*' could not be acquired."): lock_2.acquire(timeout=0.1) # delete lock 1 and try to acquire lock 2 again diff --git a/tox.ini b/tox.ini index c82819c0..960e01e0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] requires = - tox>=4.2 - tox-uv>=1.11.3 + tox>=4.23.2 + tox-uv>=1.17 env_list = fix 3.13 @@ -9,7 +9,6 @@ env_list = 3.11 3.10 3.9 - 3.8 type coverage docs @@ -39,7 +38,7 @@ description = format the code base to adhere to our styles, and complain about w base_python = python3.10 skip_install = true deps = - pre-commit>=3.8 + pre-commit>=4.0.1 commands = pre-commit run --all-files --show-diff-on-failure python -c 'import pathlib; print("hint: run \{\} install to add checks as pre-commit hook".format(pathlib.Path(r"{envdir}") / "bin" / "pre-commit"))' @@ -47,7 +46,7 @@ commands = [testenv:type] description = run type check on code base deps = - mypy==1.11.2 + mypy==1.14.1 set_env = {tty:MYPY_FORCE_COLOR = 1} commands = @@ -59,8 +58,8 @@ description = combine coverage files and generate diff (against DIFF_AGAINST def skip_install = true deps = covdefaults>=2.3 - coverage[toml]>=7.6.1 - diff-cover>=9.2 + coverage[toml]>=7.6.10 + diff-cover>=9.2.1 extras = parallel_show_output = true pass_env = @@ -93,9 +92,9 @@ commands = description = check that the long description is valid skip_install = true deps = - check-wheel-contents>=0.6 - twine>=5.1.1 - uv>=0.4.10 + check-wheel-contents>=0.6.1 + twine>=6.0.1 + uv>=0.5.18 commands = uv build --sdist --wheel --out-dir {envtmpdir} . twine check {envtmpdir}{/}*