-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new error handlers, add tests for NonConvergingErrorHandler (#313)
* Add pdsyevx and pricelv error handling; tests for these and NonConvergingErrorHandler * Remove chdir methods * delete _copy_all_files_from_source helper, use shutil.copytree instead * support compressed files in VaspErrorHandler and compress tests/files/vasp.(p|ps)syevx(''->.gz) * bump ruff * Remove unnecessary fake POTCAR * Replace all POTCARs with fake ones using pymatgen.dev_scripts.potcar_scrambler.py, gzip all POTCARs with tests that permit gzipped output * temporarily unzip a few files to ensure tests pass * fix comment and ruff ignore D (missing docs) in tests --------- Co-authored-by: Janosh Riebesell <[email protected]>
- Loading branch information
1 parent
eda62bb
commit 5148246
Showing
75 changed files
with
22,111 additions
and
147,189 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,13 @@ name = "custodian" | |
version = "2024.1.9" | ||
description = "A simple JIT job management framework in Python." | ||
authors = [ | ||
{ name = "Shyue Ping Ong", email = "[email protected]" }, | ||
{ name = "Janosh Riebesell", email = "[email protected]" }, | ||
{ name = "Matthew Horton" }, | ||
{ name = "Samuel M. Blau" }, | ||
{ name = "Shyue Ping Ong", email = "[email protected]" }, | ||
{ name = "Stephen Dacek" }, | ||
{ name = "William Davidson Richards" }, | ||
{ name = "Xiaohui Qu" }, | ||
{ name = "Janosh Riebesell", email = "[email protected]" }, | ||
] | ||
maintainers = [{ name = "Janosh Riebesell" }, { name = "Shyue Ping Ong" }] | ||
readme = "README.md" | ||
|
@@ -63,7 +63,7 @@ exclude = ["*.tests", "*.tests.*"] | |
[tool.ruff] | ||
target-version = "py39" | ||
line-length = 120 | ||
select = [ | ||
lint.select = [ | ||
"B", # flake8-bugbear | ||
"C4", # flake8-comprehensions | ||
"D", # pydocstyle | ||
|
@@ -94,7 +94,7 @@ select = [ | |
"W", # pycodestyle warning | ||
"YTT", # flake8-2020 | ||
] | ||
ignore = [ | ||
lint.ignore = [ | ||
"B023", # Function definition does not bind loop variable | ||
"B028", # No explicit stacklevel keyword argument found | ||
"B904", # Within an except clause, raise exceptions with ... | ||
|
@@ -111,12 +111,12 @@ ignore = [ | |
"RUF012", # Disable checks for mutable class args. This is a non-problem. | ||
"SIM105", # Use contextlib.suppress(OSError) instead of try-except-pass | ||
] | ||
pydocstyle.convention = "google" | ||
isort.split-on-trailing-comma = false | ||
lint.pydocstyle.convention = "google" | ||
lint.isort.split-on-trailing-comma = false | ||
|
||
[tool.ruff.per-file-ignores] | ||
[tool.ruff.lint.per-file-ignores] | ||
"__init__.py" = ["F401"] | ||
"*/tests/*" = ["D"] | ||
"tests/*" = ["D"] | ||
"tasks.py" = ["D", "E"] | ||
|
||
[tool.pytest.ini_options] | ||
|
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.