Skip to content

Commit ed3ed4c

Browse files
committed
support python 3.11 and 3.12, update black, flake8, and poetry versions
1 parent cdffe8a commit ed3ed4c

File tree

9 files changed

+427
-469
lines changed

9 files changed

+427
-469
lines changed

.github/workflows/pythonpackage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
PYTHON_VERSION: ["3.8", "3.9", "3.10"]
12+
PYTHON_VERSION: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1313
steps:
1414
- uses: actions/checkout@v2
1515

fgpyo/fasta/builder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
'AAAAAAAAAANNN'
3333
3434
"""
35+
3536
import textwrap
3637
from pathlib import Path
3738
from typing import TYPE_CHECKING
@@ -48,7 +49,6 @@ def samtools_dict(*args: Any) -> None:
4849
def samtools_faidx(*args: Any) -> None:
4950
pass
5051

51-
5252
else:
5353
from pysam import dict as samtools_dict
5454
from pysam import faidx as samtools_faidx

fgpyo/fastx/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
seq2: GGGG, seq2: TTTT
2525
2626
"""
27+
2728
from contextlib import AbstractContextManager
2829
from pathlib import Path
2930
from types import TracebackType

fgpyo/io/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"10"
4343
4444
"""
45+
4546
import gzip
4647
import io
4748
import os

fgpyo/read_structure.py

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
correspond to the given read segment
6262
6363
"""
64+
6465
import enum
6566
from typing import Iterable
6667
from typing import Iterator

fgpyo/sam/builder.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- :class:`~fgpyo.sam.builder.SamBuilder` -- A builder class that allows the accumulation
1111
of alignment records and access as a list and writing to file.
1212
"""
13+
1314
from array import array
1415
from pathlib import Path
1516
from random import Random

fgpyo/vcf/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
order via the :func:`~fgpyo.vcf.builder.VariantBuilder.to_sorted_list()` method.
4949
5050
"""
51+
5152
from contextlib import contextmanager
5253
from pathlib import Path
5354
from typing import Generator

poetry.lock

+418-465
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ typing_extensions = { version = ">=3.7.4", python = "<3.12" }
3535
docs = ["sphinx", "sphinx_rtd_theme"]
3636

3737
[tool.poetry.dev-dependencies]
38-
black = ">=19.10b0"
38+
black = ">=24.2.0"
3939
flake8 = [
40-
{ version = ">=3.8.1", python = "<3.12.0" },
40+
{ version = ">=5.0.0", python = "<3.12.0" },
4141
{ version = ">=6.1.0", python = ">=3.12.0" },
4242
]
4343
isort = ">=5.10.1"

0 commit comments

Comments
 (0)