From b0862a6293aa3b659f54cee39a357054b50d900d Mon Sep 17 00:00:00 2001 From: "Joshua A. Anderson" Date: Thu, 5 Sep 2024 10:18:49 -0400 Subject: [PATCH] Update pre-commit configuration. --- .pre-commit-config.yaml | 22 ++++------------------ gsd/test/test_largefile.py | 2 +- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f896085..28471e12 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - id: check-case-conflict - id: mixed-line-ending - repo: https://github.com/asottile/pyupgrade - rev: 'v3.16.0' + rev: 'v3.17.0' hooks: - id: pyupgrade args: @@ -25,32 +25,18 @@ repos: hooks: - id: actionlint - repo: https://github.com/glotzerlab/fix-license-header - rev: v0.3.2 + rev: v0.4.1 hooks: - id: fix-license-header name: Fix license headers (Python) - types_or: [python, cython] + types_or: [c, python, cython, rst] args: - --license-file=LICENSE - --add=Part of GSD, released under the BSD 2-Clause License. - --keep-before=#! - - id: fix-license-header - name: Fix license headers (C) - types_or: [c] - args: - - --license-file=LICENSE - - --add=Part of GSD, released under the BSD 2-Clause License. - - --comment-prefix=// - - id: fix-license-header - name: Fix license headers (reStructuredText) - types_or: [rst] - args: - - --license-file=LICENSE - - --add=Part of GSD, released under the BSD 2-Clause License. - --keep-after=.. include - - --comment-prefix=.. - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.5.0' + rev: 'v0.6.3' hooks: - id: ruff-format - id: ruff diff --git a/gsd/test/test_largefile.py b/gsd/test/test_largefile.py index 4154dfcc..b12126a4 100644 --- a/gsd/test/test_largefile.py +++ b/gsd/test/test_largefile.py @@ -11,7 +11,7 @@ import gsd.hoomd -@pytest.mark.validate() +@pytest.mark.validate @pytest.mark.parametrize('N', [2**27, 2**28, 2**29 + 1]) def test_large_n(tmp_path, N): """Test data chunks and files larger than 2 GB."""