Skip to content

Commit

Permalink
Tweak the codestyle checker config to be more compatible with black
Browse files Browse the repository at this point in the history
  • Loading branch information
gb119 committed Jan 4, 2024
1 parent 11d33ab commit 33277a7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
18 changes: 15 additions & 3 deletions .prospector.yaml
Expand Up @@ -53,16 +53,28 @@ pylint:

pep257:
enable:
- D203
- D200
- D201
- D202
- D204
- D205
- D209
- D212
- D300
- D400
- D301
- D402
- D403
- D404
- D405
disable:
- D211
- D203
- D213
- D209
- D406
- D407
- D408
- D409
- D410
- D413
- D417
run: true
Expand Down
4 changes: 2 additions & 2 deletions Stoner/Image/kerr.py
Expand Up @@ -100,7 +100,7 @@ class KerrImageFile(ImageFile):
def __init__(self, *args, **kargs):
"""Ensure that the image is a KerrImage."""
super().__init__(*args, **kargs)
self._image = self.image.view(KerrArray)
self._image = self.image.view(KerrArray) # pylint: disable=no-member

@ImageFile.image.getter
def image(self): # pylint disable=invalid-overridden-method
Expand All @@ -110,7 +110,7 @@ def image(self): # pylint disable=invalid-overridden-method
@ImageFile.image.setter
def image(self, v): # pylint: disable=function-redefined
"""Ensure stored image is always an ImageArray."""
filename = self.filename
filename = self.filename # pylint: disable=access-member-before-defintion
v = KerrArray(v)
# ensure setting image goes into the same memory block if from stack
if (
Expand Down

0 comments on commit 33277a7

Please sign in to comment.