Skip to content

Commit 402dc3f

Browse files
committed
Update dependencies
1 parent 18cecd3 commit 402dc3f

File tree

8 files changed

+334
-465
lines changed

8 files changed

+334
-465
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: main
22
on: [push]
33
jobs:
44
check-tests:
5-
runs-on: ubuntu-20.04
5+
runs-on: ubuntu-24.04
66
strategy:
77
matrix:
8-
python-version: ['3.7', '3.11', 'pypy3.10']
8+
python-version: ['3.9', '3.13', 'pypy3.10']
99
steps:
1010
- uses: actions/checkout@v4
1111
- uses: actions/setup-python@v5
@@ -15,12 +15,12 @@ jobs:
1515
- run: poetry install
1616
- run: poetry run make check-tests
1717
check-dev:
18-
runs-on: ubuntu-latest
18+
runs-on: ubuntu-24.04
1919
steps:
2020
- uses: actions/checkout@v4
2121
- uses: actions/setup-python@v5
2222
with:
23-
python-version: '3.11'
23+
python-version: '3.13'
2424
- run: pip install --upgrade pip poetry
2525
- run: poetry install
2626
- run: poetry run make check-lint
@@ -34,7 +34,7 @@ jobs:
3434
- uses: actions/checkout@v4
3535
- uses: actions/setup-python@v5
3636
with:
37-
python-version: '3.11'
37+
python-version: '3.13'
3838
- run: pip install --upgrade pip poetry
3939
- run: poetry build
4040
- uses: pypa/gh-action-pypi-publish@master

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SRC=benchmark src tests
33
.PHONY: check-format
44
check-format:
55
ruff check --select I ${SRC}
6-
black --check ${SRC}
6+
ruff format --diff ${SRC}
77

88
.PHONY: check-tests
99
check-tests:
@@ -12,7 +12,7 @@ check-tests:
1212
.PHONY: check-lint
1313
check-lint:
1414
mypy --python-version 3.10 ${SRC}
15-
mypy --python-version 3.7 ${SRC}
15+
mypy --python-version 3.9 ${SRC}
1616
ruff check --ignore I ${SRC}
1717

1818
.PHONY: check
@@ -21,7 +21,7 @@ check: | check-lint check-tests check-format
2121
.PHONY: format
2222
format:
2323
ruff check --select I --fix ${SRC}
24-
black ${SRC}
24+
ruff format ${SRC}
2525

2626
.PHONY: benchmark
2727
benchmark:

poetry.lock

Lines changed: 314 additions & 442 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,15 @@ classifiers = [
1515
keywords = ["random", "integer", "iterator"]
1616

1717
[tool.poetry.dependencies]
18-
python = "^3.7"
18+
python = "^3.9"
1919
cryptography = "*"
2020

2121
[tool.poetry.group.dev.dependencies]
22-
black = "^23.3.0"
23-
mypy = "^1.4.1"
24-
pytest = "^7.4.4"
25-
pytest-benchmark = "^4.0.0"
26-
pytest-cov = "^4.0.0"
27-
ruff = "^0.2.2"
22+
mypy = "^1.15.0"
23+
pytest = "^8.3.4"
24+
pytest-benchmark = "^5.1.0"
25+
pytest-cov = "^6.0.0"
26+
ruff = "^0.9.5"
2827

2928
[build-system]
3029
requires = ["poetry-core>=1.0.0"]

src/shuffled/core.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ def __len__(self) -> int:
3838
return self._size
3939

4040
@overload
41-
def __getitem__(self, index: int) -> int:
42-
...
41+
def __getitem__(self, index: int) -> int: ...
4342

4443
@overload
45-
def __getitem__(self, index: slice) -> Sequence[int]:
46-
...
44+
def __getitem__(self, index: slice) -> Sequence[int]: ...
4745

4846
def __getitem__(self, index: Union[int, slice]) -> Union[int, Sequence[int]]:
4947
if isinstance(index, slice):

src/shuffled/crypto.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@
1010

1111
class Randomizer(ABC):
1212
@abstractproperty
13-
def domain_size(self) -> int:
14-
...
13+
def domain_size(self) -> int: ...
1514

1615
@abstractmethod
17-
def randomize(self, integer: int) -> int:
18-
...
16+
def randomize(self, integer: int) -> int: ...
1917

2018

2119
class AesRandomizer(Randomizer):

tests/test_crypto.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
23
from shuffled import crypto
34

45
KEYS = (

tests/test_shuffled.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
23
from shuffled import Shuffled
34

45

0 commit comments

Comments
 (0)