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
4 changes: 2 additions & 2 deletions .github/workflows/python-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v7
with:
version: latest
python-version: '3.13'
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/python-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Python Linter

on:
pull_request:
push:

permissions:
contents: read
pull-requests: write

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5

- name: Run pre-commit
uses: j178/prek-action@v1
8 changes: 6 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ on:
release:
types: [created]

permissions:
contents: read
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
if: github.event_name == 'release'
steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Get the tag name for the release
id: vars
Expand All @@ -20,7 +24,7 @@ jobs:
echo "tag=$tag" >> $GITHUB_OUTPUT

- name: Install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v7
with:
version: latest
python-version: '3.13'
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,27 @@ on:
pull_request:
push:

permissions:
contents: read
pull-requests: write
checks: write

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]

runs-on: ${{ matrix.os }}

steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v7
with:
version: latest
python-version: ${{ matrix.python-version }}
Expand All @@ -38,7 +43,7 @@ jobs:
shell: bash

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
env_vars: OS,PYTHON
Expand All @@ -49,7 +54,7 @@ jobs:
PYTHON: ${{ matrix.python-version }}

- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
uses: mikepenz/action-junit-report@v6
if: success() || failure() # always run even if the previous step fails
with:
report_paths: './test-results/junit.xml'
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_stages: [pre-commit]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: ^tests/.*\.(ass|srt)$
Expand All @@ -19,7 +19,7 @@ repos:
- id: detect-private-key

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.2
rev: v0.14.4
hooks:
- id: ruff
args: [ --fix ]
Expand All @@ -28,7 +28,7 @@ repos:
types_or: [ python, pyi ]

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.6.9
rev: 0.9.8
hooks:
- id: uv-lock

Expand Down
13 changes: 7 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: Implementation :: CPython",
]

[project.optional-dependencies]
cli = ["typer>=0.17.4"]
cli = ["typer>=0.20.0"]

[project.urls]
Homepage = "https://github.com/GitBib/pyasstosrt"
Expand All @@ -50,13 +51,13 @@ pyasstosrt = "pyasstosrt.batch:app"
[dependency-groups]
dev = [
"pytest>=7.0.0,<8.0.0 ; python_version < '3.12'",
"pytest>=8.4.2 ; python_version >= '3.12'",
"pytest>=9.0.0 ; python_version >= '3.12'",
"pytest-cov>=4.1.0,<5.0.0 ; python_version < '3.12'",
"pytest-cov>=7.0.0 ; python_version >= '3.12'",
"ruff>=0.13.0",
"Sphinx>=8.0.2 ; python_version >= '3.12'",
"sphinx-immaterial>=0.13.6 ; python_version >= '3.12'",
"tomli>=2.2.1",
"ruff>=0.14.4",
"Sphinx>=8.0.2 ; python_version >= '3.12' and python_version < '3.14'",
"sphinx-immaterial>=0.13.6 ; python_version >= '3.12' and python_version < '3.14'",
"tomli>=2.3.0",
]

[tool.hatch.build.targets.sdist]
Expand Down
Loading