Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.
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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ jobs:
- name: Lint
run: |
poetry run pre-commit run --all-files
poetry run cz check --rev-range $(git describe --tags --abbrev=0)..HEAD
poetry run cz check --rev-range "$(git describe --tags --abbrev=0)..HEAD"

test:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
platform: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v4
- uses: FedericoCarboni/setup-ffmpeg@v3
- uses: AnimMouse/setup-ffmpeg@v1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: FedericoCarboni/setup-ffmpeg@v3
- uses: AnimMouse/setup-ffmpeg@v1

- name: Set up Python
uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default_stages: [commit]
default_stages: [pre-commit]

repos:
- repo: local
Expand Down
4 changes: 3 additions & 1 deletion moe_transcode/transcode_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
@moe.hookimpl
def add_config_validator(settings: dynaconf.base.LazySettings):
"""Validate move plugin configuration settings."""
settings.validators.register(
assert isinstance(settings.library_path, str)

settings.validators.register( # type: ignore
dynaconf.Validator(
"TRANSCODE.TRANSCODE_PATH",
default=Path(settings.library_path) / "transcode",
Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ license = "MIT"
readme = "README.rst"

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
python = ">=3.9,<3.14"
moe = "^2.0.0"

[tool.poetry.group.test.dependencies]
debugpy = "^1.4.1"
pytest = "^8.0.0"
pytest-cov = "^4.0.0"
pytest-cov = "^6.0.0"
tox = "^4.0.0"

[tool.poetry.group.lint.dependencies]
black = "^24.0.0"
Expand All @@ -25,12 +26,12 @@ flake8-alphabetize = "^0.0.19"
flake8-bugbear = "^24.0.0"
flake8-comprehensions = "^3.10.0"
flake8-docstrings = "^1.5.0"
flake8-pytest-style = "^1.6.0"
flake8-pytest-style = "^2.0.0"
flake8-use-fstring = "^1.1"
"github3.py" = "^3.2.0"
"github3.py" = "^4.0.0"
isort = "^5.10.1"
mccabe = "^0.7.0"
pre-commit = "^3.0.0"
pre-commit = "^4.0.0"
pyright = "^1.1.267"

[tool.poetry.group.docs.dependencies]
Expand Down
29 changes: 29 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[tox]
skipsdist= true
envlist = py{39,310,311,312,313}-test, docs, lint

[testenv]
description = unit tests
skip_install = true
allowlist_externals = poetry, echo
commands_pre =
poetry install --without docs,lint
commands = poetry run pytest {posargs}

[testenv:lint]
description = lint tests
basepython = 3.13
commands_pre =
poetry install
commands =
poetry run pre-commit run --all-files
poetry run cz check --rev-range "$(git describe --tags --abbrev=0)..HEAD"

[testenv:docs]
description = docs tests
basepython = 3.13
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install --without lint,test
commands = poetry run sphinx-build -W -b html docs {envtmpdir}/html {posargs}
Loading