Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.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
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
args: # arguments to configure black
Expand All @@ -15,14 +15,14 @@ repos:


- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 7.0.0
hooks:
- id: isort
name: isort (python)

# flake8
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.3.0
hooks:
- id: flake8
args: # arguments to configure flake8
Expand All @@ -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$"
Expand Down
10 changes: 6 additions & 4 deletions client_code/cluegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading