Skip to content

Commit 141eafc

Browse files
committed
Attempt to fix repr - and remove add-trailing-comma
1 parent b7dc4f1 commit 141eafc

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ repos:
2525
hooks:
2626
- id: flake8
2727

28-
- repo: https://github.com/asottile/add-trailing-comma
29-
rev: v2.4.0
30-
hooks:
31-
- id: add-trailing-comma
32-
3328
- repo: https://github.com/asottile/setup-cfg-fmt
3429
rev: v2.2.0
3530
hooks:

src/simcardems/slabgeometry.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,15 @@ def validate(self):
9898
pass
9999

100100
def __repr__(self) -> str:
101+
name = self.__class__.__name__
101102
return (
102-
f"{self.__class__.__name__}("
103+
f"{name}("
103104
f"lx={self.parameters['lx']}, "
104105
f"ly={self.parameters['ly']}, "
105106
f"lz={self.parameters['lz']}, "
106107
f"dx={self.parameters['dx']}, "
107-
f"num_refinements={self.parameters['num_refinements']})"
108+
f"num_refinements={self.parameters['num_refinements']}"
109+
")"
108110
)
109111

110112

0 commit comments

Comments
 (0)