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
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- python-version: 3.14
env:
TOXENV: pylint
- python-version: 3.13 # Keep in sync with .readthedocs.yml
- python-version: 3.14 # Keep in sync with .readthedocs.yml
env:
TOXENV: docs
- python-version: 3.14
Expand All @@ -22,7 +22,7 @@ jobs:
TOXENV: twinecheck

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand All @@ -39,5 +39,5 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: pre-commit/action@v3.0.1
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.11"]

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Install system libraries
if: contains(matrix.python-version, 'pypy')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand Down
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
hooks:
- id: blacken-docs
additional_dependencies:
- black==25.9.0
- black==26.1.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
Expand All @@ -20,3 +20,7 @@ repos:
rev: v1.0.0
hooks:
- id: sphinx-lint
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build:
tools:
# For available versions, see:
# https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python
python: "3.13" # Keep in sync with .github/workflows/checks.yml
python: "3.14" # Keep in sync with .github/workflows/checks.yml
python:
install:
- requirements: docs/requirements.txt
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ exclude_also = [
"if __name__ == '__main__':",
]

[tool.mypy]
strict = true

[tool.pylint.MASTER]
persistent = "no"
extension-pkg-allow-list = ["lxml"]
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ commands =
[testenv:pylint]
deps =
{[testenv]deps}
pylint==4.0.2
pylint==4.0.4
commands =
pylint {posargs: cssselect tests docs}

Expand All @@ -29,10 +29,10 @@ commands =
[testenv:typing]
deps =
{[testenv]deps}
mypy==1.18.2
types-lxml==2025.8.25
mypy==1.19.1
types-lxml==2026.1.1
commands =
mypy --strict {posargs: cssselect tests}
mypy {posargs: cssselect tests}

[testenv:pre-commit]
deps = pre-commit
Expand All @@ -43,7 +43,7 @@ skip_install = true
basepython = python3
deps =
twine==6.2.0
build==1.3.0
build==1.4.0
commands =
python -m build --sdist
twine check dist/*