Skip to content

Commit 969a8d1

Browse files
[repo-helper] Configuration Update (#66)
* Updated files with 'repo_helper'. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c9d3e20 commit 969a8d1

9 files changed

Lines changed: 23 additions & 16 deletions

File tree

.github/workflows/docs_test_action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: "actions/checkout@v6"
2020

2121
- name: Check for changed files
22-
uses: dorny/paths-filter@v2
22+
uses: dorny/paths-filter@v4
2323
id: changes
2424
with:
2525
list-files: "json"

.github/workflows/flake8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: "actions/checkout@v6"
2323

2424
- name: Check for changed files
25-
uses: dorny/paths-filter@v2
25+
uses: dorny/paths-filter@v4
2626
id: changes
2727
with:
2828
list-files: "json"

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: "actions/checkout@v6"
2828

2929
- name: Check for changed files
30-
uses: dorny/paths-filter@v2
30+
uses: dorny/paths-filter@v4
3131
id: changes
3232
with:
3333
list-files: "json"

.github/workflows/python_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Check for changed files
4242
if: startsWith(github.ref, 'refs/tags/') != true
43-
uses: dorny/paths-filter@v2
43+
uses: dorny/paths-filter@v4
4444
id: changes
4545
with:
4646
list-files: "json"

.github/workflows/python_ci_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Check for changed files
4343
if: startsWith(github.ref, 'refs/tags/') != true
44-
uses: dorny/paths-filter@v2
44+
uses: dorny/paths-filter@v4
4545
id: changes
4646
with:
4747
list-files: "json"

.github/workflows/python_ci_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Check for changed files
4242
if: startsWith(github.ref, 'refs/tags/') != true
43-
uses: dorny/paths-filter@v2
43+
uses: dorny/paths-filter@v4
4444
id: changes
4545
with:
4646
list-files: "json"

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ repos:
8484
- id: forbid-crlf
8585

8686
- repo: https://github.com/python-formate/snippet-fmt
87-
rev: v0.1.5
87+
rev: v0.3.1
8888
hooks:
8989
- id: snippet-fmt
90+
additional_dependencies:
91+
- formate-trailing-commas>=0.1.1
9092

9193
- repo: https://github.com/python-formate/formate
9294
rev: v1.2.1

justfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ bare-ignore:
2323

2424
lint: unused-imports incomplete-defs bare-ignore
2525
tox -n qa
26+
27+
uncomm:
28+
git status -uall --ignored
29+
30+
# Custom commands can be added below this comment

mh_utils/csv_parser/classes.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,11 @@ def reorder_samples(self, order_mapping: Dict, key: str = "sample_name") -> None
553553
.. code-block:: python
554554
555555
order_mapping = {
556-
"Propellant 1ug +ve": 0,
557-
"Propellant 1mg +ve": 1,
558-
"Propellant 1ug -ve": 2,
559-
"Propellant 1mg -ve": 3,
560-
}
556+
"Propellant 1ug +ve": 0,
557+
"Propellant 1mg +ve": 1,
558+
"Propellant 1ug -ve": 2,
559+
"Propellant 1mg -ve": 3,
560+
}
561561
562562
:param key: The name of the property in the sample to sort by.
563563
"""
@@ -579,10 +579,10 @@ def rename_samples(self, rename_mapping: Dict, key: str = "sample_name") -> None
579579
.. code-block:: python
580580
581581
rename_mapping = {
582-
"Propellant 1ug +ve": "Alliant Unique 1µg/L +ESI",
583-
"Propellant 1mg +ve": "Alliant Unique 1mg/L +ESI",
584-
"Propellant 1mg -ve": None,
585-
}
582+
"Propellant 1ug +ve": "Alliant Unique 1µg/L +ESI",
583+
"Propellant 1mg +ve": "Alliant Unique 1mg/L +ESI",
584+
"Propellant 1mg -ve": None,
585+
}
586586
"""
587587

588588
for sample in self:

0 commit comments

Comments
 (0)