Skip to content

Commit 8ee9152

Browse files
committed
Add format checks
1 parent 464bb88 commit 8ee9152

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ jobs:
1818
with:
1919
python-version: "3.10"
2020

21-
- name: Check with Ruff
21+
- name: Lint with Ruff
2222
uses: astral-sh/ruff-action@v3
2323
with:
24-
args: --exclude docs,tests
24+
args: format --check --diff --exclude docs,tests
25+
26+
- name: Check formatting with Ruff
27+
uses: astral-sh/ruff-action@v3
28+
with:
29+
args: --check exclude docs,tests
2530

2631
- name: Install package and its dependencies
2732
run: pip install --editable .[dev,idxml]

psm_utils/io/peptide_record.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ def _entry_to_psm(entry: _PeprecEntry, filename: str | Path) -> PSM:
188188
is_decoy = is_decoy_map[entry.label]
189189
except (ValueError, KeyError) as e:
190190
raise InvalidPeprecError(
191-
f"Could not parse value for `label` {entry.label}. "
192-
"Should be `1` or `-1`."
191+
f"Could not parse value for `label` {entry.label}. Should be `1` or `-1`."
193192
) from e
194193
else:
195194
is_decoy = None

0 commit comments

Comments
 (0)