Skip to content

Commit

Permalink
Merge pull request #222 from nucleic/ruff-update
Browse files Browse the repository at this point in the history
Fix formatting to conform to ruff 0.9.0 style
  • Loading branch information
MatthieuDartiailh authored Jan 9, 2025
2 parents 666108e + 8d1ba7f commit 94baafc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions atom/property.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, fget=None, fset=None, fdel=None, cached=False):
self.set_getattr_mode(gm, fget)
if cached and fset is not None:
raise ValueError(
"Cached property are read-only, but a setter was " "specified."
"Cached property are read-only, but a setter was specified."
)
self.set_setattr_mode(SetAttr.Property, fset)
self.set_delattr_mode(DelAttr.Property, fdel)
Expand Down Expand Up @@ -104,7 +104,7 @@ def setter(self, func):
"""
if self.cached:
raise ValueError(
"Cached property are read-only, but a setter was " "specified."
"Cached property are read-only, but a setter was specified."
)
self.set_setattr_mode(SetAttr.Property, func)
return func
Expand Down
12 changes: 6 additions & 6 deletions tests/test_mem.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ def test_mem_usage(label):
last_info = stats.memory_info()
# Allow slight memory decrease over time to make tests more resilient
if first_info != last_info:
assert (
first_info.rss >= last_info.rss >= 0
), "Memory leaked:\n {}\n {}".format(first_info, last_info)
assert (
first_info.vms >= last_info.vms >= 0
), "Memory leaked:\n {}\n {}".format(first_info, last_info)
assert first_info.rss >= last_info.rss >= 0, (
"Memory leaked:\n {}\n {}".format(first_info, last_info)
)
assert first_info.vms >= last_info.vms >= 0, (
"Memory leaked:\n {}\n {}".format(first_info, last_info)
)
finally:
p.kill()
p.join()
Expand Down

0 comments on commit 94baafc

Please sign in to comment.