Skip to content

Commit

Permalink
support python 3.11 and 3.12, update black, flake8, and poetry versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Feb 22, 2024
1 parent cdffe8a commit ed3ed4c
Show file tree
Hide file tree
Showing 9 changed files with 427 additions and 469 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
PYTHON_VERSION: ["3.8", "3.9", "3.10"]
PYTHON_VERSION: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2

Expand Down
2 changes: 1 addition & 1 deletion fgpyo/fasta/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'AAAAAAAAAANNN'
"""

import textwrap
from pathlib import Path
from typing import TYPE_CHECKING
Expand All @@ -48,7 +49,6 @@ def samtools_dict(*args: Any) -> None:
def samtools_faidx(*args: Any) -> None:
pass


else:
from pysam import dict as samtools_dict
from pysam import faidx as samtools_faidx
Expand Down
1 change: 1 addition & 0 deletions fgpyo/fastx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
seq2: GGGG, seq2: TTTT
"""

from contextlib import AbstractContextManager
from pathlib import Path
from types import TracebackType
Expand Down
1 change: 1 addition & 0 deletions fgpyo/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"10"
"""

import gzip
import io
import os
Expand Down
1 change: 1 addition & 0 deletions fgpyo/read_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
correspond to the given read segment
"""

import enum
from typing import Iterable
from typing import Iterator
Expand Down
1 change: 1 addition & 0 deletions fgpyo/sam/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- :class:`~fgpyo.sam.builder.SamBuilder` -- A builder class that allows the accumulation
of alignment records and access as a list and writing to file.
"""

from array import array
from pathlib import Path
from random import Random
Expand Down
1 change: 1 addition & 0 deletions fgpyo/vcf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
order via the :func:`~fgpyo.vcf.builder.VariantBuilder.to_sorted_list()` method.
"""

from contextlib import contextmanager
from pathlib import Path
from typing import Generator
Expand Down
883 changes: 418 additions & 465 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ typing_extensions = { version = ">=3.7.4", python = "<3.12" }
docs = ["sphinx", "sphinx_rtd_theme"]

[tool.poetry.dev-dependencies]
black = ">=19.10b0"
black = ">=24.2.0"
flake8 = [
{ version = ">=3.8.1", python = "<3.12.0" },
{ version = ">=5.0.0", python = "<3.12.0" },
{ version = ">=6.1.0", python = ">=3.12.0" },
]
isort = ">=5.10.1"
Expand Down

0 comments on commit ed3ed4c

Please sign in to comment.