Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.10"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.10"]

steps:
- uses: actions/checkout@v7
Expand Down
8 changes: 4 additions & 4 deletions _prepare_dev_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ def create_dawg():
def create_bytes_dawg():
words = words100k()
values = [struct.pack("<H", len(word)) for word in words]
return dawg.BytesDAWG(zip(words, values))
return dawg.BytesDAWG(zip(words, values, strict=False))


def create_record_dawg():
words = words100k()
values = [[len(word)] for word in words]
return dawg.RecordDAWG("<H", zip(words, values))
return dawg.RecordDAWG("<H", zip(words, values, strict=False))


def create_int_dawg():
words = words100k()
values = [len(word) for word in words]
return dawg.IntDAWG(zip(words, values))
return dawg.IntDAWG(zip(words, values, strict=False))


def create_int_completion_dawg():
words = words100k()
values = [len(word) for word in words]
return dawg.IntCompletionDAWG(zip(words, values))
return dawg.IntCompletionDAWG(zip(words, values, strict=False))


def build_test_data() -> None:
Expand Down
4 changes: 2 additions & 2 deletions dawg_python/dawgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
if TYPE_CHECKING:
from collections.abc import Iterator, Mapping
from pathlib import Path
from typing import Any
from typing import Any, TypeAlias

from typing_extensions import Self, TypeAlias
from typing_extensions import Self

Replaces: TypeAlias = Mapping[str, str | list[str]]
CompiledReplaces: TypeAlias = Mapping[str, list[tuple[bytes, str]]]
Expand Down
48 changes: 24 additions & 24 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
Expand All @@ -21,23 +20,23 @@ classifiers = [
repository = "https://github.com/pymorphy2-fork/DAWG-Python/"

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.10"
typing-extensions = { version = ">=4.0", python = "<3.11" }

[tool.poetry.group.dev.dependencies]
flake8 = { version = ">=6.1,<8.0", python = "^3.8.1" }
dawg2 = ">=0.12.1,<0.14.0"
pytest = ">=7.4.1,<9.0.0"
pytest-cov = ">=4.1,<8.0"
ruff = ">=0.5.0,<0.16.10"
ruff = ">=0.5.0,<0.17.4"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.ruff]
line-length = 120
target-version = "py39"
target-version = "py310"

[tool.ruff.lint]
select = ["ALL"]
Expand Down
Loading