Skip to content

Commit

Permalink
refactor: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
apotterri committed Jul 5, 2024
1 parent 550b128 commit b7bd2fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion _appmap/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def _describe_schema(name, val, depth, max_depth):
if islist:
elts = [(None, v) for v in val]
schema_key = "items"
elif isdict:
else:
assert isdict
elts = val.items()
schema_key = "properties"

Expand Down
3 changes: 2 additions & 1 deletion _appmap/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def stop_recording(cls):
def check_time(cls, event_time):
if _MAX_TIME is None:
return
if event_time - cls.get_current()._start_time > _MAX_TIME:
delta = event_time - cls.get_current()._start_time # pylint: disable=protected-access
if delta > _MAX_TIME:
raise AppMapSessionTooLong(f"Session exceeded {_MAX_TIME} seconds")

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[MAIN]
# Specify a score threshold under which the program will exit with error.
fail-under=9.86
fail-under=9.88


# Analyse import fallback blocks. This can be used to support both Python 2 and
Expand Down

0 comments on commit b7bd2fc

Please sign in to comment.