diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 34b2f96837..1f30c82a81 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_language_version: exclude: ^(.github/|tests/test_data/abinit/) repos: - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.4.10 + rev: v0.5.1 hooks: - id: ruff args: [--fix] @@ -17,7 +17,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/asottile/blacken-docs - rev: 1.16.0 + rev: 1.18.0 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.10.0 + rev: v1.10.1 hooks: - id: mypy files: ^src/ diff --git a/src/atomate2/cli/dev.py b/src/atomate2/cli/dev.py index 7e80b5fa66..ebdb9d0e02 100644 --- a/src/atomate2/cli/dev.py +++ b/src/atomate2/cli/dev.py @@ -600,13 +600,13 @@ def save_abinit_maker(maker: Maker) -> None: author_mail = None if git: name = subprocess.run( - "git config user.name".split(), # noqa: S603 + "git config user.name".split(), capture_output=True, encoding="utf-8", check=True, ) mail = subprocess.run( - "git config user.email".split(), # noqa: S603 + "git config user.email".split(), capture_output=True, encoding="utf-8", check=True,