Skip to content

Commit f285600

Browse files
chore: drop python38, add python313
chore: drop python38, add python313
1 parent eab4f1a commit f285600

File tree

7 files changed

+500
-463
lines changed

7 files changed

+500
-463
lines changed

.github/workflows/actions.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ jobs:
77
runs-on: ubuntu-22.04
88
strategy:
99
matrix:
10-
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
10+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13" ]
1111

1212
steps:
1313
- name: Setup dependencies
14-
uses: ExpressApp/github-actions-poetry@v0.4
14+
uses: ExpressApp/github-actions-poetry@v0.5
1515
with:
1616
python-version: ${{ matrix.python-version }}
17-
poetry-version: "1.3.2"
17+
poetry-version: "2.1.3"
1818

1919
- name: Run tests
2020
run: |
@@ -26,14 +26,14 @@ jobs:
2626
runs-on: ubuntu-22.04
2727
strategy:
2828
matrix:
29-
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
29+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13" ]
3030

3131
steps:
3232
- name: Setup dependencies
33-
uses: ExpressApp/github-actions-poetry@v0.4
33+
uses: ExpressApp/github-actions-poetry@v0.5
3434
with:
3535
python-version: ${{ matrix.python-version }}
36-
poetry-version: "1.3.2"
36+
poetry-version: "2.1.3"
3737

3838
- name: Run lint
3939
run: |
@@ -46,9 +46,9 @@ jobs:
4646

4747
steps:
4848
- name: Setup dependencies
49-
uses: ExpressApp/github-actions-poetry@v0.4
49+
uses: ExpressApp/github-actions-poetry@v0.5
5050
with:
51-
poetry-version: "1.3.2"
51+
poetry-version: "2.1.3"
5252

5353
- name: Run linters
5454
run: |

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
- name: Assert tag is from master
1212
run: git branch -a --contains $(git describe --tags) | grep master
1313
- name: Build and publish to pypi
14-
uses: JRubics/poetry-publish@v1.8
14+
uses: JRubics/poetry-publish@v2.1
1515
with:
1616
pypi_token: ${{ secrets.PYPI_TOKEN }}

poetry.lock

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

pybotx_fsm/state_repo_proto.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44

55

66
class StateRepoProto(Protocol):
7-
async def get(self, key: Hashable, default: Any = None) -> Any:
8-
... # noqa: WPS428
7+
async def get(self, key: Hashable, default: Any = None) -> Any: ... # noqa: WPS428
98

109
async def set(
1110
self,
1211
key: Hashable,
1312
value: Any,
1413
expire: Optional[int] = None,
15-
) -> None:
16-
... # noqa: WPS428
14+
) -> None: ... # noqa: WPS428
1715

18-
async def delete(self, key: Hashable) -> None:
19-
... # noqa: WPS428
16+
async def delete(self, key: Hashable) -> None: ... # noqa: WPS428

pyproject.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22

33
[tool.poetry]
44
name = "pybotx-fsm"
5-
version = "0.5.0"
5+
version = "0.6.0"
66
description = "FSM middleware for using with pybotx"
77
readme = "README.md"
88
authors = []
99

1010
[tool.poetry.dependencies]
11-
python = ">=3.8.1,<3.13"
11+
python = ">=3.9,<3.14"
1212

13-
pybotx = ">=0.65.0"
13+
pybotx = ">=0.75.0"
1414

1515
[tool.poetry.dev-dependencies]
16-
add-trailing-comma = "2.2.3"
16+
add-trailing-comma = "3.1.0"
1717
autoflake = "2.3.1"
18-
black = "22.3.0"
19-
isort = "5.10.1"
20-
mypy = "0.950.0"
21-
wemake-python-styleguide = "0.18.0"
18+
black = "25.1.0"
19+
isort = "6.0.1"
20+
mypy = "1.15.0"
21+
wemake-python-styleguide = "0.19.2"
2222

23-
pytest = "7.4.3"
24-
pytest-asyncio = "0.18.3"
23+
pytest = "8.3.5"
24+
pytest-asyncio = "0.26.0"
2525

2626
[build-system]
27-
requires = ["poetry>=1.1.12"]
27+
requires = ["poetry>=2.1.3"]
2828
build-backend = "poetry.masonry.api"

scripts/docs-lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ python scripts/collect_snippets.py
1111

1212
isort --profile black --check-only "${snippets_dir_path}"
1313
black --check --diff "${snippets_dir_path}"
14-
mypy "${snippets_dir_path}"
14+
mypy --disable-error-code empty-body "${snippets_dir_path}"
1515
flake8 "${snippets_dir_path}"
1616

1717
rm -rf "${snippets_dir_path}"

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ ignore =
5454
WPS326,
5555
# Asserts are ok
5656
S101,
57+
E704,
5758

5859

5960
[tool:pytest]

0 commit comments

Comments
 (0)