Skip to content

Commit bc93f61

Browse files
committed
ruff unignore PD002 (pandas don't use inplace)
1 parent 24f812e commit bc93f61

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pymatgen/io/vasp/sets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def __init__(
349349
if sort_structure:
350350
structure = structure.get_sorted_structure()
351351
if validate_magmom:
352-
get_valid_magmom_struct(structure, spin_mode="auto", inplace=True)
352+
get_valid_magmom_struct(structure, spin_mode="auto", inplace=True) # noqa: PD002
353353

354354
self._structure = structure
355355
self._config_dict = deepcopy(config_dict)

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ ignore = [
6868
"D205", # 1 blank line required between summary line and description
6969
"D212", # Multi-line docstring summary should start at the first line
7070
"D415", # First line should end with a period, question mark, or exclamation point
71-
"PD002", # pandas-use-of-inplace-argument
7271
"PD011", # pandas-use-of-dot-values
7372
"PD901", # pandas-df-variable-name
7473
"PLC0414", # useless-import-alias

0 commit comments

Comments
 (0)