diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index acb2b93..edf54a0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.3.0 # Replace by any tag/version: https://github.com/psf/black/tags + rev: 25.1.0 # Replace by any tag/version: https://github.com/psf/black/tags hooks: - id: black args: # arguments to configure black @@ -15,14 +15,14 @@ repos: - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 6.0.0 hooks: - id: isort name: isort (python) # flake8 - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.1.1 hooks: - id: flake8 args: # arguments to configure flake8 @@ -33,7 +33,7 @@ repos: # https://flake8.pycqa.org/en/latest/user/error-codes.html - "--ignore=E203,E266,E501,W503,F403,F401,E402,W605,E302" - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.1 + rev: v1.5.5 hooks: - id: insert-license files: "^.*py$" diff --git a/client_code/cluegen.py b/client_code/cluegen.py index 39ac91e..3149a5b 100644 --- a/client_code/cluegen.py +++ b/client_code/cluegen.py @@ -71,10 +71,12 @@ def __init_subclass__(cls): def __init__(cls): clues = all_clues(cls) args = ", ".join( - f"{name}={getattr(cls,name)!r}" - if hasattr(cls, name) - and not isinstance(getattr(cls, name), MemberDescriptorType) - else name + ( + f"{name}={getattr(cls,name)!r}" + if hasattr(cls, name) + and not isinstance(getattr(cls, name), MemberDescriptorType) + else name + ) for name in clues ) body = "\n".join(f" self.{name} = {name}" for name in clues)