Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 04c9686

Browse files
committed
build: update dependencies and support python 3.13
1 parent 5191e53 commit 04c9686

File tree

4 files changed

+40
-8
lines changed

4 files changed

+40
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
- name: Lint
3131
run: |
3232
poetry run pre-commit run --all-files
33-
poetry run cz check --rev-range $(git describe --tags --abbrev=0)..HEAD
33+
poetry run cz check --rev-range "$(git describe --tags --abbrev=0)..HEAD"
3434
3535
test:
3636
runs-on: ${{ matrix.platform }}
3737
strategy:
3838
matrix:
39-
python-version: ["3.9", "3.10", "3.11", "3.12"]
39+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
4040
platform: [ubuntu-latest, windows-latest, macos-latest]
4141

4242
steps:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
default_stages: [commit]
1+
default_stages: [pre-commit]
22

33
repos:
44
- repo: local

pyproject.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ license = "MIT"
88
readme = "README.rst"
99

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

1414
[tool.poetry.group.test.dependencies]
1515
debugpy = "^1.4.1"
1616
pytest = "^8.0.0"
17-
pytest-cov = "^4.0.0"
17+
pytest-cov = "^6.0.0"
18+
tox = "^4.0.0"
1819

1920
[tool.poetry.group.lint.dependencies]
2021
black = "^24.0.0"
@@ -25,12 +26,12 @@ flake8-alphabetize = "^0.0.19"
2526
flake8-bugbear = "^24.0.0"
2627
flake8-comprehensions = "^3.10.0"
2728
flake8-docstrings = "^1.5.0"
28-
flake8-pytest-style = "^1.6.0"
29+
flake8-pytest-style = "^2.0.0"
2930
flake8-use-fstring = "^1.1"
30-
"github3.py" = "^3.2.0"
31+
"github3.py" = "^4.0.0"
3132
isort = "^5.10.1"
3233
mccabe = "^0.7.0"
33-
pre-commit = "^3.0.0"
34+
pre-commit = "^4.0.0"
3435
pyright = "^1.1.267"
3536

3637
[tool.poetry.group.docs.dependencies]
@@ -50,6 +51,8 @@ version_files = [
5051
tag_format = "v$version"
5152

5253
[tool.commitizen.customize]
54+
bump_pattern = '^(build|deprecate|feat|fix|perf)'
55+
bump_map = { feat = "MINOR", build = "PATCH", deprecate = "PATCH", fix = "PATCH", perf = "PATCH" }
5356
schema_pattern = '(build|ci|deprecate|docs|feat|fix|perf|refactor|release|style|test)(\(\w+\))?!?:\s\S.*'
5457

5558
[tool.isort]

tox.ini

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[tox]
2+
skipsdist= true
3+
envlist = py{39,310,311,312,313}-test, docs, lint
4+
5+
[testenv]
6+
description = unit tests
7+
skip_install = true
8+
allowlist_externals = poetry, echo
9+
commands_pre =
10+
poetry install --without docs,lint
11+
commands = poetry run pytest {posargs}
12+
13+
[testenv:lint]
14+
description = lint tests
15+
basepython = 3.13
16+
commands_pre =
17+
poetry install
18+
commands =
19+
poetry run pre-commit run --all-files
20+
poetry run cz check --rev-range "$(git describe --tags --abbrev=0)..HEAD"
21+
22+
[testenv:docs]
23+
description = docs tests
24+
basepython = 3.13
25+
skip_install = true
26+
allowlist_externals = poetry
27+
commands_pre =
28+
poetry install --without lint,test
29+
commands = poetry run sphinx-build -W -b html docs {envtmpdir}/html {posargs}

0 commit comments

Comments
 (0)