From 72ae47c99447dfe11ac0e05d91a63131df5954e2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Aug 2022 17:49:43 +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/pre-commit/pre-commit-hooks: v3.4.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v3.4.0...v4.3.0) - [github.com/domdfcoding/pre-commit-hooks: v0.1.6 → v0.4.0](https://github.com/domdfcoding/pre-commit-hooks/compare/v0.1.6...v0.4.0) - [github.com/domdfcoding/flake8-dunder-all: v0.1.5 → v0.2.2](https://github.com/domdfcoding/flake8-dunder-all/compare/v0.1.5...v0.2.2) - [github.com/pre-commit/pygrep-hooks: v1.7.0 → v1.9.0](https://github.com/pre-commit/pygrep-hooks/compare/v1.7.0...v1.9.0) - [github.com/asottile/pyupgrade: v2.7.4 → v2.37.3](https://github.com/asottile/pyupgrade/compare/v2.7.4...v2.37.3) - [github.com/Lucas-C/pre-commit-hooks: v1.1.9 → v1.3.1](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.1.9...v1.3.1) - [github.com/domdfcoding/yapf-isort: v0.5.5 → v0.6.0](https://github.com/domdfcoding/yapf-isort/compare/v0.5.5...v0.6.0) - [github.com/domdfcoding/dep_checker: v0.4.1 → v0.7.0](https://github.com/domdfcoding/dep_checker/compare/v0.4.1...v0.7.0) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df51e46..fdf49b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ exclude: ^$ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.3.0 hooks: - id: check-added-large-files - id: check-ast @@ -25,7 +25,7 @@ repos: - id: end-of-file-fixer - repo: https://github.com/domdfcoding/pre-commit-hooks - rev: v0.1.6 + rev: v0.4.0 hooks: - id: requirements-txt-sorter args: @@ -35,37 +35,37 @@ repos: - id: bind-requirements - repo: https://github.com/domdfcoding/flake8-dunder-all - rev: v0.1.5 + rev: v0.2.2 hooks: - id: ensure-dunder-all files: ^domdf_wxpython_tools/.*\.py$ - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.7.0 + rev: v1.9.0 hooks: - id: python-no-eval - repo: https://github.com/asottile/pyupgrade - rev: v2.7.4 + rev: v2.37.3 hooks: - id: pyupgrade args: - --py36-plus - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.1.9 + rev: v1.3.1 hooks: - id: remove-crlf - id: forbid-crlf - repo: https://github.com/domdfcoding/yapf-isort - rev: v0.5.5 + rev: v0.6.0 hooks: - id: yapf-isort exclude: ^(doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.py$ - repo: https://github.com/domdfcoding/dep_checker - rev: v0.4.1 + rev: v0.7.0 hooks: - id: dep_checker args: From 0c5a2eb3ab7813ba939b33753efdd691eaff91b3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Aug 2022 17:53:04 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- domdf_wxpython_tools/panel_listctrl/font_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domdf_wxpython_tools/panel_listctrl/font_parser.py b/domdf_wxpython_tools/panel_listctrl/font_parser.py index 4b434dd..100fe77 100644 --- a/domdf_wxpython_tools/panel_listctrl/font_parser.py +++ b/domdf_wxpython_tools/panel_listctrl/font_parser.py @@ -47,7 +47,7 @@ def freezeargs(func: Callable) -> Callable: @wraps(func) def wrapped(*args, **kwargs): - args = tuple([frozendict(arg) if isinstance(arg, dict) else arg for arg in args]) + args = tuple(frozendict(arg) if isinstance(arg, dict) else arg for arg in args) kwargs = {k: frozendict(v) if isinstance(v, dict) else v for k, v in kwargs.items()} return func(*args, **kwargs)