Skip to content

Commit

Permalink
drop black for ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Nov 2, 2023
1 parent 3ad487a commit d43920d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
10 changes: 3 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
rev: v0.1.3
hooks:
- id: ruff
args: [--fix, --ignore, D]
- id: ruff-format

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
Expand All @@ -21,13 +22,8 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.6.1
hooks:
- id: mypy
additional_dependencies: [types-requests]
Expand Down
8 changes: 2 additions & 6 deletions custodian/qchem/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ def correct(self):
elif int(self.qcinp.rem.get("geom_opt_max_cycles", 50)) < self.geom_max_cycles:
self.qcinp.rem["geom_opt_max_cycles"] = self.geom_max_cycles
if str(self.qcinp.rem.get("geom_opt2", "none")) == "3" or self.outdata["version"] == "6":
self.qcinp.geom_opt[ # pylint: disable=unsupported-assignment-operation
"maxiter"
] = self.geom_max_cycles
self.qcinp.geom_opt["maxiter"] = self.geom_max_cycles # pylint: disable=unsupported-assignment-operation
actions.append({"geom_max_cycles:": self.geom_max_cycles})
if "molecule_from_last_geometry" in self.outdata:
self.qcinp.molecule = self.outdata.get("molecule_from_last_geometry")
Expand Down Expand Up @@ -194,9 +192,7 @@ def correct(self):

elif self.outdata["version"] == "6" and self.qcinp.rem.get("geom_opt_driver", "libopt3") != "optimize":
if self.qcinp.geom_opt["coordinates"] == "redundant":
self.qcinp.geom_opt[ # pylint: disable=unsupported-assignment-operation
"coordinates"
] = "delocalized"
self.qcinp.geom_opt["coordinates"] = "delocalized" # pylint: disable=unsupported-assignment-operation
actions.append({"coordinates": "delocalized"})
if self.qcinp.geom_opt.get("initial_hessian", "none") != "read":
self.qcinp.geom_opt["initial_hessian"] = "model"
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[tool.black]
line-length = 120

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down Expand Up @@ -71,7 +68,7 @@ no_implicit_optional = false

[tool.codespell]
ignore-words-list = "ot,atomate"

check-filenames = true

[tool.coverage.run]
relative_files = true
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
extras_require={
"vasp, nwchem, qchem": ["pymatgen>=2019.8.23"],
"dev": [
"black",
"mypy",
"pre-commit",
"pytest-cov",
Expand Down

0 comments on commit d43920d

Please sign in to comment.