Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #141

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
10 changes: 5 additions & 5 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: 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: 24.10.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: 5.13.2
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
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