diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 203672442e..61bb07e70b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,13 +3,13 @@ default_language_version: exclude: ^(.github/|tests/test_data/abinit/) repos: - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.6.7 + rev: v0.8.3 hooks: - id: ruff args: [--fix] - id: ruff-format - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-yaml - id: fix-encoding-pragma @@ -17,7 +17,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/asottile/blacken-docs - rev: 1.18.0 + rev: 1.19.1 hooks: - id: blacken-docs additional_dependencies: [black] @@ -30,7 +30,7 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.13.0 hooks: - id: mypy files: ^src/ @@ -41,11 +41,11 @@ repos: rev: v2.3.0 hooks: - id: codespell - stages: [commit, commit-msg] + stages: [pre-commit, commit-msg] args: [--ignore-words-list, 'titel,statics,ba,nd,te,atomate'] types_or: [python, rst, markdown] - repo: https://github.com/kynan/nbstripout - rev: 0.7.1 + rev: 0.8.1 hooks: - id: nbstripout args: diff --git a/src/atomate2/common/schemas/phonons.py b/src/atomate2/common/schemas/phonons.py index 7453c132cd..539917fc03 100644 --- a/src/atomate2/common/schemas/phonons.py +++ b/src/atomate2/common/schemas/phonons.py @@ -407,7 +407,7 @@ def from_forces_born( force_gamma=True, ) phonon.run_mesh(kpoint.kpts[0]) - phonon_dos_sigma = kwargs.get("phonon_dos_sigma", None) + phonon_dos_sigma = kwargs.get("phonon_dos_sigma") dos_use_tetrahedron_method = kwargs.get("dos_use_tetrahedron_method", True) phonon.run_total_dos( sigma=phonon_dos_sigma, use_tetrahedron_method=dos_use_tetrahedron_method