[pre-commit.ci] pre-commit autoupdate (#192)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.4)
- [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1)

* Fix Ruff

* fix ci

* actually fix ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hynek Schlawack <hs@ox.cx>
This commit is contained in:
pre-commit-ci[bot] 2025-02-04 10:45:20 +01:00 committed by GitHub
parent 33a5be6286
commit 6928cdd5fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 11 additions and 9 deletions

View File

@ -147,7 +147,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get install libargon2-0 libargon2-0-dev
sudo apt-get install libargon2-1 libargon2-dev
python -VV
python -Im site
python -Im pip install --upgrade wheel tox
@ -214,7 +214,7 @@ jobs:
- uses: actions/setup-python@v5
with:
# Keep in sync with tox.ini/docs & .readthedocs.yaml
python-version: "3.12"
python-version: "3.13"
- uses: hynek/setup-cached-uv@v2
- run: >
@ -235,7 +235,6 @@ jobs:
persist-credentials: false
- uses: actions/setup-python@v5
with:
cache: pip
python-version-file: .python-version-default
- name: Install in dev mode and run CLI

View File

@ -4,7 +4,7 @@ ci:
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
@ -17,7 +17,7 @@ repos:
args: [tests]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell

View File

@ -5,7 +5,7 @@ build:
os: ubuntu-lts-latest
tools:
# Keep version in sync with tox.ini/docs and ci.yml/docs.
python: "3.12"
python: "3.13"
jobs:
# Need the tags to calculate the version.
post_checkout:
@ -20,3 +20,6 @@ python:
submodules:
include: all
sphinx:
configuration: docs/conf.py

View File

@ -95,11 +95,11 @@ TEST_PARALLELISM = 4
TEST_HASH_LEN = 32
i_and_d_encoded = pytest.mark.parametrize(
"type,hash",
("type", "hash"),
[(Type.I, TEST_HASH_I), (Type.D, TEST_HASH_D), (Type.ID, TEST_HASH_ID)],
)
i_and_d_raw = pytest.mark.parametrize(
"type,hash",
("type", "hash"),
[(Type.I, TEST_RAW_I), (Type.D, TEST_RAW_D), (Type.ID, TEST_RAW_ID)],
)

View File

@ -84,7 +84,7 @@ commands = mypy src
[testenv:docs]
description = Build docs and run doctests.
# Keep base_python in-sync with .readthedocs.yaml and ci.yml/docs.
base_python = py312
base_python = py313
extras = docs
commands =
python -m doctest README.md