From 4e65177634073a61fe0e012052024c8f281e489c Mon Sep 17 00:00:00 2001 From: stevenhua0320 Date: Thu, 28 May 2026 20:56:38 -0400 Subject: [PATCH] chore: update pre-commit version --- .pre-commit-config.yaml | 20 +++++----- news/pre-commit-update.rst | 23 ++++++++++++ src/diffpy/srxplanargui/help.py | 11 +++++- src/diffpy/srxplanargui/imageplot.py | 51 +++++++++++++++----------- src/diffpy/srxplanargui/selectfiles.py | 4 +- src/diffpy/srxplanargui/srxconfig.py | 19 +++++++--- tests/conftest.py | 5 ++- 7 files changed, 93 insertions(+), 40 deletions(-) create mode 100644 news/pre-commit-update.rst diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0e4a84d..c424bcf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ ci: submodules: false repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-yaml - id: end-of-file-fixer @@ -21,45 +21,45 @@ repos: - id: check-toml - id: check-added-large-files - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 26.5.1 hooks: - id: black - repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.3.0 hooks: - id: flake8 - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 9.0.0a3 hooks: - id: isort args: ["--profile", "black"] - repo: https://github.com/kynan/nbstripout - rev: 0.7.1 + rev: 0.9.1 hooks: - id: nbstripout - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: no-commit-to-branch name: Prevent Commit to Main Branch args: ["--branch", "main"] stages: [pre-commit] - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.2 hooks: - id: codespell additional_dependencies: - tomli # prettier - multi formatter for .json, .yml, and .md files - repo: https://github.com/pre-commit/mirrors-prettier - rev: f12edd9c7be1c20cfa42420fd0e6df71e42b51ea # frozen: v4.0.0-alpha.8 + rev: v4.0.0-alpha.8 hooks: - id: prettier additional_dependencies: - "prettier@^3.2.4" # docformatter - PEP 257 compliant docstring formatter - - repo: https://github.com/s-weigand/docformatter - rev: 5757c5190d95e5449f102ace83df92e7d3b06c6c + - repo: https://github.com/PyCQA/docformatter + rev: v1.7.8 hooks: - id: docformatter additional_dependencies: [tomli] diff --git a/news/pre-commit-update.rst b/news/pre-commit-update.rst new file mode 100644 index 0000000..88db3c1 --- /dev/null +++ b/news/pre-commit-update.rst @@ -0,0 +1,23 @@ +**Added:** + +* No News Added: updated the pre-commit workflow version + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* + +**Security:** + +* diff --git a/src/diffpy/srxplanargui/help.py b/src/diffpy/srxplanargui/help.py index 6e6473e..d50a3d2 100644 --- a/src/diffpy/srxplanargui/help.py +++ b/src/diffpy/srxplanargui/help.py @@ -64,7 +64,9 @@ class SrXguiHelp(HasTraits): enabled_when="object.qsindex