From 140982ede753c5b49735d48406d96cd918b218f4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Jul 2022 18:07:54 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0) - [github.com/asottile/pyupgrade: v2.31.1 → v2.37.2](https://github.com/asottile/pyupgrade/compare/v2.31.1...v2.37.2) - [github.com/pre-commit/mirrors-mypy: v0.942 → v0.971](https://github.com/pre-commit/mirrors-mypy/compare/v0.942...v0.971) - [github.com/pre-commit/mirrors-prettier: v2.6.2 → v2.7.1](https://github.com/pre-commit/mirrors-prettier/compare/v2.6.2...v2.7.1) --- .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 c6970ea86..a5291862c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 22.6.0 hooks: - id: black args: [--target-version=py36] @@ -9,7 +9,7 @@ repos: hooks: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v2.31.1 + rev: v2.37.2 hooks: - id: pyupgrade args: [--py37-plus] @@ -20,7 +20,7 @@ repos: additional_dependencies: - flake8-pytest-style - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.942 + rev: v0.971 hooks: - id: mypy # Avoid error: Duplicate module named 'setup' @@ -39,6 +39,6 @@ repos: args: [--ini, .bandit] exclude: ^tests/ - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.6.2 + rev: v2.7.1 hooks: - id: prettier From 83c83f558b770a9e7665d350aecbde529dfe56b8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Jul 2022 18:08:23 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- piptools/subprocess_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piptools/subprocess_utils.py b/piptools/subprocess_utils.py index 42af78282..0d6311c44 100644 --- a/piptools/subprocess_utils.py +++ b/piptools/subprocess_utils.py @@ -13,5 +13,5 @@ def run_python_snippet(python_executable: str, code_to_run: str) -> str: return subprocess.check_output( # nosec py_exec_cmd, shell=False, - universal_newlines=True, + text=True, )