-
Notifications
You must be signed in to change notification settings - Fork 876
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Ruff rule family "N" and "S" (#3892)
* enable ruff rule family N * fix NPY002 in code (tests to be fixed) * fix NPY002 in tests * replace random with np where np is imported * fix miller index type * [Need Confirm] remove rnd seed and reduce distortion * fix random seed * correct replacement of randn with standard_normal * enable rule family S and format tweaks * suppress S501 error * suppress S105 errors * suppress S602 * replace weak `sha1` hash with `sha256` * ignore S311 as pymatgen is not for cryptography * suppress S605 for trusted source * NEED CONFIRM: fix S607 for the starting of a process with a partial executable path * suppress S310 for trusted source * suppress S608 for trusted source * NEED CONFIRMATION: rewrite subprocess without shell * suppress S301, but still enable it because pickle is known to have potential security issues * replace xml with defusedxml to fix S314 * Revert "replace xml with defusedxml to fix S314" This reverts commit 4947ff5. * ignore S314 * suppress S607 in tasks.py * Revert "NEED CONFIRM: fix S607 for the starting of a process with a partial executable path" This reverts commit 26ccb85. * Fix DTZ003 deprecated datetime API * pre-commit auto-fixes * update monty to fix datetime serialization * replace np.exceptions.RankWarning * update monty in pyproject * revert to np.RankWarning for now * revert accidental np.trapz change during merge * pre-commit auto-fixes * pre-commit auto-fixes * suppress S202 for trusted source * ignore NPY201 for now * Revert "pre-commit auto-fixes" This reverts commit f6a7275. * pre-commit auto-fixes * fix indentation * Revert "pre-commit auto-fixes" This reverts commit 134a11c. * regenerate requirement.txt * fix indentation * rename single-letter p = subprocess.run * replace stdlib random with numpy * avoid assign single use rng * fix unit test * keep non-imperative * replace os.system with subprocess * docstring and type tweaks for io.packmol * io.packmol format tweaks * fix subprocess run usage for stdin file * add return type in docstring * (feel free to revert) use list join over str concat * use f-str --------- Co-authored-by: Janosh Riebesell <janosh.riebesell@gmail.com>
- Loading branch information
1 parent
c20cd62
commit fa8d596
Showing
52 changed files
with
411 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.