From 11be5bbbf5dc7de296d08dfdfac896c4548b006f Mon Sep 17 00:00:00 2001 From: "repo-helper[bot]" <74742576+repo-helper[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 22:58:32 +0000 Subject: [PATCH 1/2] Updated files with 'repo_helper'. --- .github/workflows/docs_test_action.yml | 2 +- .github/workflows/flake8.yml | 2 +- .github/workflows/mypy.yml | 2 +- .github/workflows/python_ci.yml | 2 +- .github/workflows/python_ci_linux.yml | 2 +- .github/workflows/python_ci_macos.yml | 2 +- .pre-commit-config.yaml | 4 +++- justfile | 5 +++++ 8 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docs_test_action.yml b/.github/workflows/docs_test_action.yml index cc61c83..76249f1 100644 --- a/.github/workflows/docs_test_action.yml +++ b/.github/workflows/docs_test_action.yml @@ -19,7 +19,7 @@ jobs: uses: "actions/checkout@v6" - name: Check for changed files - uses: dorny/paths-filter@v2 + uses: dorny/paths-filter@v4 id: changes with: list-files: "json" diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index 8296b42..1f5be86 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -22,7 +22,7 @@ jobs: uses: "actions/checkout@v6" - name: Check for changed files - uses: dorny/paths-filter@v2 + uses: dorny/paths-filter@v4 id: changes with: list-files: "json" diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 4b27c5d..2b5e4f8 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -27,7 +27,7 @@ jobs: uses: "actions/checkout@v6" - name: Check for changed files - uses: dorny/paths-filter@v2 + uses: dorny/paths-filter@v4 id: changes with: list-files: "json" diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml index b301481..b446430 100644 --- a/.github/workflows/python_ci.yml +++ b/.github/workflows/python_ci.yml @@ -40,7 +40,7 @@ jobs: - name: Check for changed files if: startsWith(github.ref, 'refs/tags/') != true - uses: dorny/paths-filter@v2 + uses: dorny/paths-filter@v4 id: changes with: list-files: "json" diff --git a/.github/workflows/python_ci_linux.yml b/.github/workflows/python_ci_linux.yml index 895d5e3..1d666c5 100644 --- a/.github/workflows/python_ci_linux.yml +++ b/.github/workflows/python_ci_linux.yml @@ -41,7 +41,7 @@ jobs: - name: Check for changed files if: startsWith(github.ref, 'refs/tags/') != true - uses: dorny/paths-filter@v2 + uses: dorny/paths-filter@v4 id: changes with: list-files: "json" diff --git a/.github/workflows/python_ci_macos.yml b/.github/workflows/python_ci_macos.yml index dae20ad..401c9b3 100644 --- a/.github/workflows/python_ci_macos.yml +++ b/.github/workflows/python_ci_macos.yml @@ -40,7 +40,7 @@ jobs: - name: Check for changed files if: startsWith(github.ref, 'refs/tags/') != true - uses: dorny/paths-filter@v2 + uses: dorny/paths-filter@v4 id: changes with: list-files: "json" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 62451fb..9d62a0b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -84,9 +84,11 @@ repos: - id: forbid-crlf - repo: https://github.com/python-formate/snippet-fmt - rev: v0.1.5 + rev: v0.3.1 hooks: - id: snippet-fmt + additional_dependencies: + - formate-trailing-commas>=0.1.1 - repo: https://github.com/python-formate/formate rev: v1.2.1 diff --git a/justfile b/justfile index 9cd8b78..4307956 100644 --- a/justfile +++ b/justfile @@ -23,3 +23,8 @@ bare-ignore: lint: unused-imports incomplete-defs bare-ignore tox -n qa + +uncomm: + git status -uall --ignored + +# Custom commands can be added below this comment From 9f2903461cc4a515b65b3d2cae19e3f33c7deb53 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 22:59:38 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mh_utils/csv_parser/classes.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mh_utils/csv_parser/classes.py b/mh_utils/csv_parser/classes.py index 054a3d3..e061dcb 100644 --- a/mh_utils/csv_parser/classes.py +++ b/mh_utils/csv_parser/classes.py @@ -553,11 +553,11 @@ def reorder_samples(self, order_mapping: Dict, key: str = "sample_name") -> None .. code-block:: python order_mapping = { - "Propellant 1ug +ve": 0, - "Propellant 1mg +ve": 1, - "Propellant 1ug -ve": 2, - "Propellant 1mg -ve": 3, - } + "Propellant 1ug +ve": 0, + "Propellant 1mg +ve": 1, + "Propellant 1ug -ve": 2, + "Propellant 1mg -ve": 3, + } :param key: The name of the property in the sample to sort by. """ @@ -579,10 +579,10 @@ def rename_samples(self, rename_mapping: Dict, key: str = "sample_name") -> None .. code-block:: python rename_mapping = { - "Propellant 1ug +ve": "Alliant Unique 1µg/L +ESI", - "Propellant 1mg +ve": "Alliant Unique 1mg/L +ESI", - "Propellant 1mg -ve": None, - } + "Propellant 1ug +ve": "Alliant Unique 1µg/L +ESI", + "Propellant 1mg +ve": "Alliant Unique 1mg/L +ESI", + "Propellant 1mg -ve": None, + } """ for sample in self: