Skip to content

Commit

Permalink
2021: Address changes for latest ruff version
Browse files Browse the repository at this point in the history
Update configuration options that changed names and new lint errors
added.
  • Loading branch information
ericvw committed Jan 3, 2024
1 parent ff74f4b commit d4cbdbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 2021/puzzle_18.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __repr__(self) -> str:
def list2tree(lst: Any, parent: Optional[Node] = None) -> Node:
# XXX: Recursive types aren't supported in mypy; thus, 'Any'.
n = Node(parent=parent)
if type(lst) == int:
if isinstance(lst, int):
n.val = lst
else:
left, right = lst
Expand Down
2 changes: 1 addition & 1 deletion 2021/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extend-select = [
]

# Group errors by file.
format = "grouped"
output-format = "grouped"

# Show source context of error.
show-source = true
Expand Down

0 comments on commit d4cbdbb

Please sign in to comment.