Skip to content

Commit 72d333a

Browse files
author
drickett
committed
update a test, update github workflow
1 parent 0e5d275 commit 72d333a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/python.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,16 @@ jobs:
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434

35-
- name: Install Hatch
36-
run: pip install uv
35+
- name: Install dependencies
36+
run:
37+
- apt update && apt install yamllint
38+
- pip install uv
39+
40+
- name: Check code
41+
run:
42+
- yamllint .
43+
- uv run mypy --check .
44+
- uv run ruff check .
3745

3846
- name: Run tests
3947
run: uv run pytest --junitxml=pytest.xml

tests/easyhla_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ def test_unknown_hla_type(self):
6969
Assert we raise a value error if we put in an unknown HLA type.
7070
"""
7171
with pytest.raises(ValueError):
72-
_ = EasyHLA("D")
72+
_ = EasyHLA("D") # type: ignore[arg-type]
7373

7474
def test_known_hla_type_lowercase(self):
7575
"""
7676
Assert we raise a value error if we put in an HLA type with wrong case.
7777
"""
7878
with pytest.raises(ValueError):
79-
_ = EasyHLA("a")
79+
_ = EasyHLA("a") # type: ignore[arg-type]
8080

8181
@pytest.mark.parametrize("easyhla", ["A"], indirect=True)
8282
def test_load_allele_definitions_last_modified_time(

0 commit comments

Comments
 (0)