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: 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)