From 916c5615ac8829fe478b483be09241549492d085 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jun 2023 16:27:00 -0700 Subject: [PATCH 01/55] [pre-commit.ci] pre-commit autoupdate (#159) 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 2f1857c..d50fe5b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt - rev: "1.3.0" + rev: "1.3.1" hooks: - id: tox-ini-fmt args: ["-p", "fix"] From de4688301e47eaf3a5a6c3a3358dd973610d72c2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Jun 2023 11:00:28 -0700 Subject: [PATCH 02/55] [pre-commit.ci] pre-commit autoupdate (#161) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- src/tox_ini_fmt/formatter/__init__.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d50fe5b..ac318b2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "0.12.0" + rev: "0.12.1" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.6"] @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.272" + rev: "v0.0.275" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/tox_ini_fmt/formatter/__init__.py b/src/tox_ini_fmt/formatter/__init__.py index 2940455..c872ffe 100644 --- a/src/tox_ini_fmt/formatter/__init__.py +++ b/src/tox_ini_fmt/formatter/__init__.py @@ -42,5 +42,4 @@ def _generate_tox_ini(parser: ConfigParser) -> str: parser.write(output) result = output.getvalue().strip() + "\n" result = result.replace("\t", INDENTATION) - result = result.replace(" \n", "\n") - return result + return result.replace(" \n", "\n") From c90ec83f0529d592acdaee50a700f8d593c58a85 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Jun 2023 15:15:50 -0700 Subject: [PATCH 03/55] Bump pypa/gh-action-pypi-publish from 1.8.6 to 1.8.7 (#162) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e55af2..a88753b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,4 +24,4 @@ jobs: - name: Build package run: pyproject-build -s -w . -o dist - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.8.6 + uses: pypa/gh-action-pypi-publish@v1.8.7 From 596eb4807e9e396b830d2d027add9a201061e3b5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Jul 2023 14:56:39 -0700 Subject: [PATCH 04/55] [pre-commit.ci] pre-commit autoupdate (#163) 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 ac318b2..6106d76 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,17 +14,17 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "0.12.1" + rev: "0.13.0" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.6"] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.0-alpha.9-for-vscode" + rev: "v3.0.0" hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.275" + rev: "v0.0.277" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 94e0cfd692107e633f25d6ae4c0e99d9122b2d5c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Jul 2023 16:22:50 -0700 Subject: [PATCH 05/55] Bump pypa/gh-action-pypi-publish from 1.8.7 to 1.8.8 (#164) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a88753b..ae68aa6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,4 +24,4 @@ jobs: - name: Build package run: pyproject-build -s -w . -o dist - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.8.7 + uses: pypa/gh-action-pypi-publish@v1.8.8 From fd1e68dd1b1a8b0a266b8771c60a106326d163bf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 17 Jul 2023 11:12:39 -0700 Subject: [PATCH 06/55] [pre-commit.ci] pre-commit autoupdate (#165) 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 6106d76..ea84461 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/psf/black - rev: 23.3.0 + rev: 23.7.0 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.277" + rev: "v0.0.278" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 34c96bebd7f437d6ae91206c45bcbcff7b7d0168 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 22:51:07 -0700 Subject: [PATCH 07/55] [pre-commit.ci] pre-commit autoupdate (#166) 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 ea84461..1ba82aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.278" + rev: "v0.0.280" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From e1515a9b84022056259fc1ee007612b41c4f5b61 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Aug 2023 11:09:56 -0700 Subject: [PATCH 08/55] [pre-commit.ci] pre-commit autoupdate (#167) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-prettier: v3.0.0 → v3.0.1](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0...v3.0.1) - [github.com/astral-sh/ruff-pre-commit: v0.0.280 → v0.0.282](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.280...v0.0.282) 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 1ba82aa..1a79593 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,12 +19,12 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.6"] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.0" + rev: "v3.0.1" hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.280" + rev: "v0.0.282" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 990933b97aaba117ab116b6273dea0d660a294a9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Aug 2023 08:40:25 -0700 Subject: [PATCH 09/55] Bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.9 (#168) Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.8.8 to 1.8.9. - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.8.8...v1.8.9) --- 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.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae68aa6..834f90a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,4 +24,4 @@ jobs: - name: Build package run: pyproject-build -s -w . -o dist - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.8.8 + uses: pypa/gh-action-pypi-publish@v1.8.9 From 4bc14a76d3a3afd83194151d9258f02b5f9dd2b9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 12 Aug 2023 11:45:36 -0700 Subject: [PATCH 10/55] Bump pypa/gh-action-pypi-publish from 1.8.9 to 1.8.10 (#169) Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.8.9 to 1.8.10. - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.8.9...v1.8.10) --- 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.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 834f90a..d1372fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,4 +24,4 @@ jobs: - name: Build package run: pyproject-build -s -w . -o dist - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.8.9 + uses: pypa/gh-action-pypi-publish@v1.8.10 From a10c5b579f4613a126c65ddad04d44a30731b1cf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 14 Aug 2023 12:53:45 -0700 Subject: [PATCH 11/55] [pre-commit.ci] pre-commit autoupdate (#170) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: 0.13.0 → 0.13.1](https://github.com/tox-dev/pyproject-fmt/compare/0.13.0...0.13.1) - [github.com/astral-sh/ruff-pre-commit: v0.0.282 → v0.0.284](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.282...v0.0.284) 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 1a79593..d3ce7f9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "0.13.0" + rev: "0.13.1" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.6"] @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.282" + rev: "v0.0.284" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From a0f5b2ad218532b7e62d52043d9b39865fc551a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Fri, 18 Aug 2023 16:29:39 -0700 Subject: [PATCH 12/55] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 000f945..e97ecad 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![PyPI](https://img.shields.io/pypi/v/tox-ini-fmt?style=flat-square)](https://pypi.org/project/tox-ini-fmt) [![PyPI - Implementation](https://img.shields.io/pypi/implementation/tox-ini-fmt?style=flat-square)](https://pypi.org/project/tox-ini-fmt) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tox-ini-fmt?style=flat-square)](https://pypi.org/project/tox-ini-fmt) -[![PyPI - Downloads](https://img.shields.io/pypi/dm/tox-ini-fmt?style=flat-square)](https://pypistats.org/packages/tox-ini-fmt) +[![Downloads](https://static.pepy.tech/badge/tox-ini-fmt/month)](https://pepy.tech/project/tox-ini-fmt) [![PyPI - License](https://img.shields.io/pypi/l/tox-ini-fmt?style=flat-square)](https://opensource.org/licenses/MIT) ![check](https://github.com/tox-dev/tox-ini-fmt/workflows/check/badge.svg?branch=main) [![codecov](https://codecov.io/gh/tox-dev/tox-ini-fmt/branch/main/graph/badge.svg)](https://codecov.io/gh/pypa/virtualenv) From d30f46c8012fb892b6f0c99829343d5b5551dd45 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 13:11:01 -0700 Subject: [PATCH 13/55] [pre-commit.ci] pre-commit autoupdate (#171) 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 d3ce7f9..ee0e672 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,12 +19,12 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.6"] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.1" + rev: "v3.0.2" hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.284" + rev: "v0.0.285" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From efb3a09900bf798358afe30e9034e44effcf88cf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:04:38 -0700 Subject: [PATCH 14/55] [pre-commit.ci] pre-commit autoupdate (#172) 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 ee0e672..c1b835a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "0.13.1" + rev: "1.1.0" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.6"] @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.285" + rev: "v0.0.286" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From ffecfd5cc3f950e586b4a147508cfa557c56573f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 08:38:36 -0700 Subject: [PATCH 15/55] Bump actions/checkout from 3 to 4 (#174) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/check.yml | 4 ++-- .github/workflows/release.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6f3f073..f122f59 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -31,7 +31,7 @@ jobs: python-version: "3.11" - name: install tox run: python -m pip install tox - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup python for test ${{ matrix.py }} uses: actions/setup-python@v4 with: @@ -60,7 +60,7 @@ jobs: - dev - readme steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup Python 3.11 uses: actions/setup-python@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1372fb..4f1e982 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: python-version: "3.11" - name: Install build run: python -m pip install build - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Build package From 3edb095391113cc8acbf45ef50478f04b146bb53 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 08:39:35 -0700 Subject: [PATCH 16/55] [pre-commit.ci] pre-commit autoupdate (#173) 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 c1b835a..9a0ed75 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,12 +19,12 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.6"] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.2" + rev: "v3.0.3" hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.286" + rev: "v0.0.287" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 69ba5f57bfbd234f3de4d15275e8122526b4d80f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Wed, 6 Sep 2023 12:04:05 -0700 Subject: [PATCH 17/55] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e97ecad..6a5e692 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Sample `.pre-commit-config.yaml`: ```yaml - repo: https://github.com/tox-dev/tox-ini-fmt - rev: "1.1.0" + rev: "1.3.1" hooks: - id: tox-ini-fmt args: ["-p", "fix_lint,type"] From 64b86e1cc0e4929f758d2593ebaf7dfb2e7fd903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Fri, 8 Sep 2023 10:08:02 -0700 Subject: [PATCH 18/55] Add security and funding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernát Gábor --- .github/FUNDING.yml | 1 + .github/SECURITY.md | 13 +++++++++++++ .pre-commit-config.yaml | 2 +- pyproject.toml | 4 ++-- tox.ini | 6 +++--- 5 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 .github/FUNDING.yml create mode 100644 .github/SECURITY.md diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..bfda2bb --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +tidelift: pypi/tox-ini-fmt diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 0000000..a8d9ce0 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,13 @@ +# Security Policy + +## Supported Versions + +| Version | Supported | +| ------- | ------------------ | +| 1.3.1 + | :white_check_mark: | +| < 1.3.1 | :x: | + +## Reporting a Vulnerability + +To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift +will coordinate the fix and disclosure. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a0ed75..05d3fd7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: rev: "1.1.0" hooks: - id: pyproject-fmt - additional_dependencies: ["tox>=4.6"] + additional_dependencies: ["tox>=4.11.2"] - repo: https://github.com/pre-commit/mirrors-prettier rev: "v3.0.3" hooks: diff --git a/pyproject.toml b/pyproject.toml index 08ecc9e..698e6f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ build-backend = "hatchling.build" requires = [ "hatch-vcs>=0.3", - "hatchling>=1.17.1", + "hatchling>=1.18", ] [project] @@ -48,7 +48,7 @@ dependencies = [ ] optional-dependencies.test = [ "covdefaults>=2.3", - "pytest>=7.3.2", + "pytest>=7.4.2", "pytest-cov>=4.1", ] urls.Documentation = "https://tox.wiki" diff --git a/tox.ini b/tox.ini index c6e1785..e16c952 100644 --- a/tox.ini +++ b/tox.ini @@ -35,7 +35,7 @@ commands = description = run static analysis and style check using flake8 package = skip deps = - pre-commit>=3.3.3 + pre-commit>=3.4 pass_env = HOMEPATH PROGRAMDATA @@ -46,7 +46,7 @@ commands = [testenv:type] description = run type check on code base deps = - mypy==1.3 + mypy==1.5.1 set_env = {tty:MYPY_FORCE_COLOR = 1} commands = @@ -57,7 +57,7 @@ commands = description = check that the long description is valid package = skip deps = - build[virtualenv]>=0.10 + build[virtualenv]>=1.0.3 twine>=4.0.2 commands = python -m build --sdist --wheel -o {env_tmp_dir} . From afa45877e3cf3ac253c955fa5b5a44c63d88ad77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Mon, 11 Sep 2023 09:49:04 -0700 Subject: [PATCH 19/55] Fix type checker (#175) --- .github/workflows/check.yml | 2 +- .pre-commit-config.yaml | 4 ++-- src/tox_ini_fmt/cli.py | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f122f59..d3cf199 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -18,7 +18,7 @@ jobs: fail-fast: false matrix: py: - - "3.12.0-beta.2" + - "3.12.0-rc.2" - "3.11" - "3.10" - "3.9" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 05d3fd7..aa0edf3 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/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -17,7 +17,7 @@ repos: rev: "1.1.0" hooks: - id: pyproject-fmt - additional_dependencies: ["tox>=4.11.2"] + additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/pre-commit/mirrors-prettier rev: "v3.0.3" hooks: diff --git a/src/tox_ini_fmt/cli.py b/src/tox_ini_fmt/cli.py index deca882..5b482a6 100644 --- a/src/tox_ini_fmt/cli.py +++ b/src/tox_ini_fmt/cli.py @@ -73,4 +73,6 @@ def __call__( help="tox environments that pin to the start of the envlist (comma separated)", ) parser.add_argument("tox_ini", nargs="+", type=tox_ini_path_creator, help="tox ini files to format") - return parser.parse_args(namespace=ToxIniFmtNamespace(), args=args) + ns = ToxIniFmtNamespace() + parser.parse_args(namespace=ns, args=args) + return ns From 5990fa4eece5fe74ac096aa364303cb2181ea1e4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 26 Sep 2023 15:34:57 -0700 Subject: [PATCH 20/55] [pre-commit.ci] pre-commit autoupdate (#176) 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 aa0edf3..c1dd682 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.287" + rev: "v0.0.291" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From de84e4921f1a24575d890b0f782bf6d473377dbf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:01:12 -0700 Subject: [PATCH 21/55] [pre-commit.ci] pre-commit autoupdate (#177) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: 1.1.0 → 1.2.0](https://github.com/tox-dev/pyproject-fmt/compare/1.1.0...1.2.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 c1dd682..638500f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.1.0" + rev: "1.2.0" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] From 98c1406cfc291c0e8784a926be4c35939d55865d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 20 Oct 2023 11:08:37 -0700 Subject: [PATCH 22/55] [pre-commit.ci] pre-commit autoupdate (#178) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.291 → v0.0.292](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.291...v0.0.292) 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 638500f..5f27a80 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.4.0 + rev: v4.5.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.291" + rev: "v0.0.292" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 1d54f6462f8344f70fa6eaecc7aab9bebeb62cd6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:39:12 -0700 Subject: [PATCH 23/55] [pre-commit.ci] pre-commit autoupdate (#179) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.9.1 → 23.10.0](https://github.com/psf/black/compare/23.9.1...23.10.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.292 → v0.1.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.292...v0.1.1) 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 5f27a80..04961d2 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/psf/black - rev: 23.9.1 + rev: 23.10.0 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.292" + rev: "v0.1.1" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From f38f6dc4fa322af5da61d4f6b51b42896ed6ecea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 11:43:06 -0700 Subject: [PATCH 24/55] [pre-commit.ci] pre-commit autoupdate (#180) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.10.0 → 23.10.1](https://github.com/psf/black/compare/23.10.0...23.10.1) - [github.com/tox-dev/pyproject-fmt: 1.2.0 → 1.3.0](https://github.com/tox-dev/pyproject-fmt/compare/1.2.0...1.3.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.1 → v0.1.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.1...v0.1.3) 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 04961d2..ecaa5c3 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/psf/black - rev: 23.10.0 + rev: 23.10.1 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -14,7 +14,7 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.2.0" + rev: "1.3.0" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.1" + rev: "v0.1.3" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From a1abb6687a47912af75c399c95d25decc865d035 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 14:53:51 -0800 Subject: [PATCH 25/55] [pre-commit.ci] pre-commit autoupdate (#181) 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 ecaa5c3..3c720d7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.3.0" + rev: "1.4.1" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.3" + rev: "v0.1.4" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From f5362263de99a9986055815b00ec4b5aa09d2d9b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Nov 2023 09:52:27 +0100 Subject: [PATCH 26/55] [pre-commit.ci] pre-commit autoupdate (#182) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0) - [github.com/tox-dev/pyproject-fmt: 1.4.1 → 1.5.1](https://github.com/tox-dev/pyproject-fmt/compare/1.4.1...1.5.1) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v3.1.0](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v3.1.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.4...v0.1.5) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c720d7..065e612 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/psf/black - rev: 23.10.1 + rev: 23.11.0 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -14,17 +14,17 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.4.1" + rev: "1.5.1" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.3" + rev: "v3.1.0" hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.4" + rev: "v0.1.5" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 04ed716281354b93b2f194e925eb9d7ee5654ec3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 26 Nov 2023 17:22:48 -0800 Subject: [PATCH 27/55] [pre-commit.ci] pre-commit autoupdate (#183) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.5 → v0.1.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.5...v0.1.6) 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 065e612..2de9f64 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.5" + rev: "v0.1.6" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From cfbf1636f9d5dad369dbcf208397ecd305eefca1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 11:56:14 -0800 Subject: [PATCH 28/55] Bump pypa/gh-action-pypi-publish from 1.8.10 to 1.8.11 (#184) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f1e982..528693b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,4 +24,4 @@ jobs: - name: Build package run: pyproject-build -s -w . -o dist - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.8.10 + uses: pypa/gh-action-pypi-publish@v1.8.11 From 9d4c2736078fd1171f1eeda65a39e26ad29d196c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 18:52:13 -0800 Subject: [PATCH 29/55] [pre-commit.ci] pre-commit autoupdate (#185) 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 2de9f64..1d0dde1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,12 +14,12 @@ 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.11.3"] - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.1.0" + rev: "v4.0.0-alpha.3" hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] From 378a4551493b40dca25d219f7a0c4832d3c327e6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 8 Dec 2023 18:22:59 -0800 Subject: [PATCH 30/55] Bump actions/setup-python from 4 to 5 (#186) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/check.yml | 9 ++++++--- .github/workflows/release.yml | 3 ++- .pre-commit-config.yaml | 7 +------ 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d3cf199..16cf68b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -26,14 +26,16 @@ jobs: - "3.7" steps: - name: setup python for tox - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 + cache: "pip" with: python-version: "3.11" - name: install tox run: python -m pip install tox - uses: actions/checkout@v4 - name: setup python for test ${{ matrix.py }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 + cache: "pip" with: python-version: ${{ matrix.py }} - name: Pick environment to run @@ -62,7 +64,8 @@ jobs: steps: - uses: actions/checkout@v4 - name: setup Python 3.11 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 + cache: "pip" with: python-version: "3.11" - name: install tox diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 528693b..400da0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,8 @@ jobs: id-token: write steps: - name: Setup python to build package - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 + cache: "pip" with: python-version: "3.11" - name: Install build diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1d0dde1..4e04df7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,13 +18,8 @@ repos: hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v4.0.0-alpha.3" - hooks: - - id: prettier - args: ["--print-width=120", "--prose-wrap=always"] - 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] From 8c811f5a0b855d376e26cae413f12d21c3d2bc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Fri, 8 Dec 2023 18:41:20 -0800 Subject: [PATCH 31/55] Fix CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernát Gábor --- .github/workflows/check.yml | 13 ++++++------- .github/workflows/release.yml | 3 +-- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 16cf68b..6a80c65 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-rc.2" + - "3.12" - "3.11" - "3.10" - "3.9" @@ -27,15 +29,13 @@ jobs: steps: - name: setup python for tox uses: actions/setup-python@v5 - cache: "pip" with: - python-version: "3.11" + python-version: "3.12" - name: install tox run: python -m pip install tox - uses: actions/checkout@v4 - name: setup python for test ${{ matrix.py }} uses: actions/setup-python@v5 - cache: "pip" with: python-version: ${{ matrix.py }} - name: Pick environment to run @@ -63,11 +63,10 @@ jobs: - readme steps: - uses: actions/checkout@v4 - - name: setup Python 3.11 + - name: setup Python 3.12 uses: actions/setup-python@v5 - cache: "pip" with: - python-version: "3.11" + python-version: "3.12" - name: install tox run: python -m pip install tox - name: run check for ${{ matrix.tox_env }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 400da0a..2955af3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,9 +14,8 @@ jobs: steps: - name: Setup python to build package uses: actions/setup-python@v5 - cache: "pip" with: - python-version: "3.11" + python-version: "3.12" - name: Install build run: python -m pip install build - uses: actions/checkout@v4 From 5a91ff751dfafeaa01255cc317317307fce25b1c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 14:29:28 -0800 Subject: [PATCH 32/55] [pre-commit.ci] pre-commit autoupdate (#187) 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 4e04df7..553ebd1 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/psf/black - rev: 23.11.0 + rev: 23.12.0 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.7" + rev: "v0.1.8" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 21e6948c17f737368d271c06576916f4d4d1fc52 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 3 Jan 2024 16:23:57 -0800 Subject: [PATCH 33/55] [pre-commit.ci] pre-commit autoupdate (#188) 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 553ebd1..73a1349 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/psf/black - rev: 23.12.0 + rev: 23.12.1 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.8" + rev: "v0.1.9" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 9744928731728cef9cab743d51dd1002a29e723e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 10 Jan 2024 08:18:40 -0800 Subject: [PATCH 34/55] [pre-commit.ci] pre-commit autoupdate (#189) 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 73a1349..ea904ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.9" + rev: "v0.1.11" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 0e03e89a8676aeae266bde147c19a4c8af367eae Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 08:20:21 -0800 Subject: [PATCH 35/55] [pre-commit.ci] pre-commit autoupdate (#190) 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 ea904ce..582fdd0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,12 +14,12 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.5.3" + rev: "1.6.0" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.11" + rev: "v0.1.13" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 2b8c4cfec3d6c15a15415f501a9b0903a3381683 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 08:53:28 -0800 Subject: [PATCH 36/55] [pre-commit.ci] pre-commit autoupdate (#191) 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 582fdd0..59ba13b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,12 +14,12 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.6.0" + rev: "1.7.0" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.13" + rev: "v0.1.14" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 19dc0608cb4ca5ef2265d5f40c0e797303c59293 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 07:55:32 -0800 Subject: [PATCH 37/55] [pre-commit.ci] pre-commit autoupdate (#192) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- src/tox_ini_fmt/__init__.py | 1 + src/tox_ini_fmt/__main__.py | 1 + src/tox_ini_fmt/cli.py | 1 + src/tox_ini_fmt/formatter/__init__.py | 1 + src/tox_ini_fmt/formatter/requires.py | 1 + src/tox_ini_fmt/formatter/section_order.py | 1 + src/tox_ini_fmt/formatter/test_env.py | 1 + src/tox_ini_fmt/formatter/tox_section.py | 1 + src/tox_ini_fmt/formatter/util.py | 1 + 10 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 59ba13b..6e8c28c 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/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt diff --git a/src/tox_ini_fmt/__init__.py b/src/tox_ini_fmt/__init__.py index 691f5cc..10853da 100644 --- a/src/tox_ini_fmt/__init__.py +++ b/src/tox_ini_fmt/__init__.py @@ -1,4 +1,5 @@ """Format tox.ini files.""" + from __future__ import annotations from .version import __version__ diff --git a/src/tox_ini_fmt/__main__.py b/src/tox_ini_fmt/__main__.py index 5d5dcd7..2e815df 100644 --- a/src/tox_ini_fmt/__main__.py +++ b/src/tox_ini_fmt/__main__.py @@ -1,4 +1,5 @@ """Main entry point.""" + from __future__ import annotations import difflib diff --git a/src/tox_ini_fmt/cli.py b/src/tox_ini_fmt/cli.py index 5b482a6..2a37e58 100644 --- a/src/tox_ini_fmt/cli.py +++ b/src/tox_ini_fmt/cli.py @@ -1,4 +1,5 @@ """CLI argument parsing.""" + from __future__ import annotations import os diff --git a/src/tox_ini_fmt/formatter/__init__.py b/src/tox_ini_fmt/formatter/__init__.py index c872ffe..0f13cd6 100644 --- a/src/tox_ini_fmt/formatter/__init__.py +++ b/src/tox_ini_fmt/formatter/__init__.py @@ -1,4 +1,5 @@ """Logic related to formatting the file.""" + from __future__ import annotations from configparser import ConfigParser diff --git a/src/tox_ini_fmt/formatter/requires.py b/src/tox_ini_fmt/formatter/requires.py index 5fd2532..d18980e 100644 --- a/src/tox_ini_fmt/formatter/requires.py +++ b/src/tox_ini_fmt/formatter/requires.py @@ -1,4 +1,5 @@ """Normalize requires values.""" + from __future__ import annotations from packaging.requirements import InvalidRequirement, Requirement diff --git a/src/tox_ini_fmt/formatter/section_order.py b/src/tox_ini_fmt/formatter/section_order.py index 5546990..d3b7677 100644 --- a/src/tox_ini_fmt/formatter/section_order.py +++ b/src/tox_ini_fmt/formatter/section_order.py @@ -1,4 +1,5 @@ """Order configuration sections.""" + from __future__ import annotations import itertools diff --git a/src/tox_ini_fmt/formatter/test_env.py b/src/tox_ini_fmt/formatter/test_env.py index bcadb44..5681ad0 100644 --- a/src/tox_ini_fmt/formatter/test_env.py +++ b/src/tox_ini_fmt/formatter/test_env.py @@ -1,4 +1,5 @@ """Formatting the test environment sections.""" + from __future__ import annotations from functools import partial diff --git a/src/tox_ini_fmt/formatter/tox_section.py b/src/tox_ini_fmt/formatter/tox_section.py index cefce3a..a1384ea 100644 --- a/src/tox_ini_fmt/formatter/tox_section.py +++ b/src/tox_ini_fmt/formatter/tox_section.py @@ -1,4 +1,5 @@ """Formatting the core tox section.""" + from __future__ import annotations from functools import partial diff --git a/src/tox_ini_fmt/formatter/util.py b/src/tox_ini_fmt/formatter/util.py index 39842c0..6b1796e 100644 --- a/src/tox_ini_fmt/formatter/util.py +++ b/src/tox_ini_fmt/formatter/util.py @@ -1,4 +1,5 @@ """Utility methods.""" + from __future__ import annotations import itertools From 0a54f7ecb9ead93d865a67cf145b854c18503685 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 16:10:45 -0800 Subject: [PATCH 38/55] [pre-commit.ci] pre-commit autoupdate (#193) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- src/tox_ini_fmt/formatter/util.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6e8c28c..5777818 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/psf/black - rev: 24.1.1 + rev: 24.2.0 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.1.14" + rev: "v0.2.2" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/tox_ini_fmt/formatter/util.py b/src/tox_ini_fmt/formatter/util.py index 6b1796e..d14fa05 100644 --- a/src/tox_ini_fmt/formatter/util.py +++ b/src/tox_ini_fmt/formatter/util.py @@ -96,6 +96,7 @@ def to_list_of_env_values(pin_toxenvs: list[str], payload: str) -> str: ------- envlist = py39,py38 envlist = {py37,py36}-django{20,21},{py37,py36}-mango{20,21},py38. + """ within_braces, values = False, [] cur_str, brace_str = "", "" From f9ba548bb2a5411d67faa6ffe18935613a8a111a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 27 Feb 2024 13:43:59 -0800 Subject: [PATCH 39/55] Bump pypa/gh-action-pypi-publish from 1.8.11 to 1.8.12 (#194) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2955af3..3e4b524 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,4 +24,4 @@ jobs: - name: Build package run: pyproject-build -s -w . -o dist - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.8.11 + uses: pypa/gh-action-pypi-publish@v1.8.12 From ffa717034316799cfe47bfec768146c23b52151f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:37:42 -0800 Subject: [PATCH 40/55] Bump pypa/gh-action-pypi-publish from 1.8.12 to 1.8.14 (#195) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e4b524..7c5b748 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,4 +24,4 @@ jobs: - name: Build package run: pyproject-build -s -w . -o dist - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.8.12 + uses: pypa/gh-action-pypi-publish@v1.8.14 From 6481fe0ae973efd88a74f4275f5c63603bcf5197 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 Mar 2024 07:29:29 -0700 Subject: [PATCH 41/55] [pre-commit.ci] pre-commit autoupdate (#196) 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 5777818..3fa6a90 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.2.2" + rev: "v0.3.2" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 817749189f3ea52cfb83dae3f137588d1edc0a1c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 10:43:35 -0700 Subject: [PATCH 42/55] [pre-commit.ci] pre-commit autoupdate (#197) 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 3fa6a90..3dedf86 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/psf/black - rev: 24.2.0 + rev: 24.3.0 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.3.2" + rev: "v0.3.3" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From eb22478941d0d1d26e5167d8970b95a96ea6a196 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 10:42:56 -0700 Subject: [PATCH 43/55] [pre-commit.ci] pre-commit autoupdate (#198) 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 3dedf86..10784d5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.3.3" + rev: "v0.3.4" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 9ad6bd6b7897d7d047ccd435e23b60f47f4f378d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 9 Apr 2024 09:47:48 -0700 Subject: [PATCH 44/55] [pre-commit.ci] pre-commit autoupdate (#200) 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 10784d5..52c6a1a 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.5.0 + rev: v4.6.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.3.4" + rev: "v0.3.5" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 0c6583bdf2c339815ee544d660f8447b719a8b70 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:07:34 -0700 Subject: [PATCH 45/55] [pre-commit.ci] pre-commit autoupdate (#201) 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 52c6a1a..0003703 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/psf/black - rev: 24.3.0 + rev: 24.4.0 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.3.5" + rev: "v0.3.7" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From d79b0d83137022a318391185103fa8943e9865a7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:49:53 +0000 Subject: [PATCH 46/55] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: 1.7.0 → 1.8.0](https://github.com/tox-dev/pyproject-fmt/compare/1.7.0...1.8.0) - [github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.4.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.3.7...v0.4.1) --- .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 0003703..61f9d10 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,12 +14,12 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.7.0" + rev: "1.8.0" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.3.7" + rev: "v0.4.1" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 4ead5c17677b5f65ef2ef5f0ce90f1f3289579fb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 3 May 2024 10:52:13 -0700 Subject: [PATCH 47/55] [pre-commit.ci] pre-commit autoupdate (#203) 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 61f9d10..3c977c3 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/psf/black - rev: 24.4.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/tox-dev/tox-ini-fmt @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.1" + rev: "v0.4.2" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From ef0c6a845220ad8c68402b0f5ed25c8203aade27 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 08:15:51 -0700 Subject: [PATCH 48/55] [pre-commit.ci] pre-commit autoupdate (#204) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 46 +++++++++++++++++++++++++++-------------- 2 files changed, 32 insertions(+), 18 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c977c3..cd1fdb7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,12 +14,12 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.8.0" + rev: "2.0.3" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.2" + rev: "v0.4.4" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/pyproject.toml b/pyproject.toml index 698e6f6..36ffcd6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,34 +59,46 @@ urls.Tracker = "https://github.com/tox-dev/tox-ini-fmt/issues" scripts.tox-ini-fmt = "tox_ini_fmt.__main__:run" [tool.hatch] -build.dev-mode-dirs = ["src"] +build.dev-mode-dirs = [ + "src", +] build.hooks.vcs.version-file = "src/tox_ini_fmt/version.py" -build.targets.sdist.include = ["/src", "/tests", "/tox.ini"] +build.targets.sdist.include = [ + "/src", + "/tests", + "/tox.ini", +] version.source = "vcs" [tool.black] line-length = 120 [tool.ruff] -select = ["ALL"] +select = [ + "ALL", +] line-length = 120 target-version = "py37" -isort = {known-first-party = ["tox_ini_fmt"], required-imports = ["from __future__ import annotations"]} +isort = { known-first-party = [ + "tox_ini_fmt", +], required-imports = [ + "from __future__ import annotations", +] } ignore = [ - "ANN101", # no typoe annotation for self - "ANN401", # allow Any as type annotation - "D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible - "D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible - "S104", # Possible binding to all interface + "ANN101", # no typoe annotation for self + "ANN401", # allow Any as type annotation + "D203", # `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible + "D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible + "S104", # Possible binding to all interface ] [tool.ruff.per-file-ignores] "tests/**/*.py" = [ - "S101", # asserts allowed in tests... - "FBT", # don"t care about booleans as positional arguments in tests - "INP001", # no implicit namespace - "D", # don"t care about documentation in tests - "S603", # `subprocess` call: check for execution of untrusted input - "PLR2004", # Magic value used in comparison, consider replacing with a constant variable + "S101", # asserts allowed in tests... + "FBT", # don"t care about booleans as positional arguments in tests + "INP001", # no implicit namespace + "D", # don"t care about documentation in tests + "S603", # `subprocess` call: check for execution of untrusted input + "PLR2004", # Magic value used in comparison, consider replacing with a constant variable ] [tool.coverage] @@ -102,7 +114,9 @@ paths.source = [ ] report.fail_under = 100 run.parallel = true -run.plugins = ["covdefaults"] +run.plugins = [ + "covdefaults", +] [tool.mypy] python_version = "3.11" From ebdbf227ce9a661ecceb4e189d6f56a29404fb3d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 16:48:15 +0000 Subject: [PATCH 49/55] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: 2.0.3 → 2.1.1](https://github.com/tox-dev/pyproject-fmt/compare/2.0.3...2.1.1) --- .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 cd1fdb7..bfaafc7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.0.3" + rev: "2.1.1" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] From 746ba619a61218c37e127a73efa3aab088d0ea1d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 May 2024 16:49:18 +0000 Subject: [PATCH 50/55] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 36ffcd6..e651c6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,11 +74,11 @@ version.source = "vcs" line-length = 120 [tool.ruff] +target-version = "py37" +line-length = 120 select = [ "ALL", ] -line-length = 120 -target-version = "py37" isort = { known-first-party = [ "tox_ini_fmt", ], required-imports = [ @@ -91,8 +91,7 @@ ignore = [ "D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible "S104", # Possible binding to all interface ] -[tool.ruff.per-file-ignores] -"tests/**/*.py" = [ +per-file-ignores."tests/**/*.py" = [ "S101", # asserts allowed in tests... "FBT", # don"t care about booleans as positional arguments in tests "INP001", # no implicit namespace From fe3ab109f384cca8256c5855563cf154c890dd65 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:40:54 -0700 Subject: [PATCH 51/55] [pre-commit.ci] pre-commit autoupdate (#206) 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 bfaafc7..e59d364 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,12 +14,12 @@ repos: - id: tox-ini-fmt args: ["-p", "fix"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.1.1" + rev: "2.1.3" hooks: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.4" + rev: "v0.4.7" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From b7c06947a8b950c23125aea893d3493755158cfb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 11 Jun 2024 07:39:27 -0700 Subject: [PATCH 52/55] [pre-commit.ci] pre-commit autoupdate (#207) 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 e59d364..e5dd2c9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.7" + rev: "v0.4.8" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 55099388efd77065c326e1f2858b897f59d4f5e1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 12:39:48 -0700 Subject: [PATCH 53/55] [pre-commit.ci] pre-commit autoupdate (#208) 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 e5dd2c9..90762d3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.8" + rev: "v0.4.9" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 9c668912e3e29ac1ddd0cc00d1988ebd874ec8fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 08:30:48 -0700 Subject: [PATCH 54/55] Bump pypa/gh-action-pypi-publish from 1.8.14 to 1.9.0 (#209) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c5b748..4539ee0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,4 +24,4 @@ jobs: - name: Build package run: pyproject-build -s -w . -o dist - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@v1.8.14 + uses: pypa/gh-action-pypi-publish@v1.9.0 From e4700fec74f8c34f6b146ad36722126c76d90dc6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 18:33:59 -0700 Subject: [PATCH 55/55] [pre-commit.ci] pre-commit autoupdate (#210) 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 90762d3..a1331b3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: pyproject-fmt additional_dependencies: ["tox>=4.11.3"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.4.9" + rev: "v0.5.0" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix]