Skip to content

Commit

Permalink
ruff check passes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael J. Wilson committed Feb 2, 2024
1 parent 05875c4 commit 3158ea8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
from __future__ import annotations

project = "foundation"
copyright = "2024, Michael J. Wilson"
Expand Down
5 changes: 4 additions & 1 deletion python/foundation/tools.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from pysam import VariantFile


Expand Down Expand Up @@ -29,7 +31,8 @@ def load_vcf(fpath: str) -> VariantFile:
vcf = VariantFile(fpath)

for rec in vcf.fetch("chr1", 1_000_000, 1_200_000):
print(rec)
assert rec

break

return vcf
Expand Down
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from __future__ import annotations

import pytest


@pytest.fixture(scope="module")
def none_fixture():
return None
6 changes: 4 additions & 2 deletions tests/example_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import pytest
from __future__ import annotations


def test_example():
assert (1+1) == 2
expectation = 2

assert expectation == (1 + 1)

0 comments on commit 3158ea8

Please sign in to comment.