Skip to content
Open
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
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
name: "Tox ${{ matrix.toxenv }}"
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0

- name: setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.13'

Expand All @@ -48,14 +48,12 @@ jobs:
strategy:
matrix:
toxenv:
- py39
- py310
- py311
- py312
- py313
- py314
include:
- toxenv: py39
python-version: '3.9'
- toxenv: py310
python-version: '3.10'
- toxenv: py311
Expand All @@ -64,6 +62,8 @@ jobs:
python-version: '3.12'
- toxenv: py313
python-version: '3.13'
- toxenv: py314
python-version: '3.14'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TOXENV: ${{ matrix.toxenv }}
Expand All @@ -72,12 +72,12 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 2

- name: setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -88,7 +88,7 @@ jobs:
run: tox

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v7
with:
flags: unittests-${{ matrix.python-version }}
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: '3.13'

Expand Down
3 changes: 1 addition & 2 deletions html2text/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@
r"""
(\\) # match one slash
(?=[%s]) # followed by a char that requires escaping
"""
% re.escape(RE_SLASH_CHARS),
""" % re.escape(RE_SLASH_CHARS),
flags=re.VERBOSE,
)

Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
urls = {Homepage = "https://github.com/Alir3z4/html2text/"}
requires-python = ">=3.9"
requires-python = ">=3.10"
dynamic = ["version"]

[project.scripts]
Expand All @@ -45,7 +45,7 @@ write_to = "html2text/_version.py"

[tool.black]
line-length = 88
target-version = ['py313']
target-version = ['py310']
extend-exclude = '''
/(
html2text/_version.py
Expand All @@ -62,4 +62,4 @@ combine_as_imports = true
extend_skip = ["html2text/_version.py"]

[tool.mypy]
python_version = "3.9"
python_version = "3.10"
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ envlist =
flake8
isort
mypy
py{39,310,311,312,313,py3}
minversion = 4.11.4
py{310,311,312,313,314,py3}
minversion = 4.56.1

[testenv]
commands =
Expand Down