Skip to content

Commit

Permalink
Add Python 3.12 and 3.13, drop Python 3.8, update tool versions (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
wRAR authored Oct 16, 2024
1 parent 8b97613 commit 67bf205
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.13'
- name: Install dependencies
run: |
pip install --upgrade build twine
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: "3.8"
- python-version: "3.9"
- python-version: "3.10"
- python-version: "3.11"
- python-version: "3.12"
- python-version: "3.13"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -39,13 +40,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.11']
python-version: ['3.13']
tox-job: ["lint", "mypy", "twinecheck"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: 23.7.0
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.1.1
hooks:
- id: flake8
1 change: 1 addition & 0 deletions clear_html/formatted_text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@
- Ensure that not block tags are inside inline tags (this is not allowed).
- Finally html is formatted a little bit to have a good looking.
"""

from clear_html.formatted_text.main import clean_doc # noqa: F401
1 change: 0 additions & 1 deletion clear_html/html_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
HTML without change.
"""


from typing import Callable, Optional, Set

from lxml import etree
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ classifiers = [
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"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 :: Implementation :: CPython",
]
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = [
"attrs>=20.3.0",
"html-text>=0.5.2",
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ commands = pre-commit run --all-files

[testenv:mypy]
deps =
mypy==1.5.0
parsel==1.8.1
pytest==7.4.0
types-attrs==19.1.0
types-lxml==2023.3.28
mypy==1.12.0
parsel==1.9.1
pytest==8.3.3
attrs>=18.2.0
types-lxml==2024.9.16
commands = mypy {posargs:clear_html tests}

[testenv:twinecheck]
basepython = python3
deps =
twine==5.1.1
build==1.2.1
build==1.2.2
commands =
python -m build --sdist
twine check dist/*

0 comments on commit 67bf205

Please sign in to comment.