Skip to content

Commit

Permalink
unignore ruff PLW1514 open() without explicit encoding argument
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Apr 13, 2024
1 parent f055827 commit fcefc3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pymatgen/util/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ def parse_history_node(cls, h_node) -> Self:
"""Parses a History Node object from either a dict or a tuple.
Args:
h_node: A dict with name/url/description fields or a 3-element
tuple.
h_node: A dict with name/url/description fields or a 3-element tuple.
Returns:
History node.
HistoryNode
"""
if isinstance(h_node, dict):
return cls.from_dict(h_node)
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ lint.ignore = [
"PERF401", # manual-list-comprehension (TODO fix these or wait for autofix)
"PLC1901", # can be simplified to ... as empty is falsey
"PLR", # pylint refactor
"PLW1514", # open() without explicit encoding argument
"PLW2901", # Outer for loop variable overwritten by inner assignment target
"PT013", # pytest-incorrect-pytest-import
"PTH", # prefer pathlib to os.path
Expand Down

0 comments on commit fcefc3d

Please sign in to comment.