diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c1818a9..a794681 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ exclude: '^docs/conf.py' repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: check-added-large-files @@ -18,13 +18,13 @@ repos: args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows - repo: https://github.com/asottile/pyupgrade - rev: v3.18.0 + rev: v3.21.2 hooks: - id: pyupgrade args: ['--py38-plus'] - repo: https://github.com/PyCQA/autoflake - rev: v2.3.1 + rev: v2.3.3 hooks: - id: autoflake args: [ @@ -34,29 +34,29 @@ repos: ] - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 9.0.0a3 hooks: - id: isort -- repo: https://github.com/psf/black - rev: 24.10.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.5.1 hooks: - id: black language_version: python3 - repo: https://github.com/adamchainz/blacken-docs - rev: 1.19.0 + rev: 1.20.0 hooks: - id: blacken-docs additional_dependencies: [black==23.*] - repo: https://github.com/PyCQA/flake8 - rev: 7.1.1 + rev: 7.3.0 hooks: - id: flake8 additional_dependencies: [flake8-bugbear] - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.2 hooks: - id: codespell diff --git a/tests/conftest.py b/tests/conftest.py index d250dbb..ee3b30e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,10 +1,10 @@ """ - Dummy conftest.py for texted. +Dummy conftest.py for texted. - If you don't know what this is for, just leave it empty. - Read more about conftest.py under: - - https://docs.pytest.org/en/stable/fixture.html - - https://docs.pytest.org/en/stable/writing_plugins.html +If you don't know what this is for, just leave it empty. +Read more about conftest.py under: +- https://docs.pytest.org/en/stable/fixture.html +- https://docs.pytest.org/en/stable/writing_plugins.html """ # import pytest diff --git a/tests/test_edit.py b/tests/test_edit.py index 89002b6..7f76889 100644 --- a/tests/test_edit.py +++ b/tests/test_edit.py @@ -2,15 +2,13 @@ from texted import add_prefix, blank, edit, find, remove_prefix, whilist -example = cleandoc( - """ +example = cleandoc(""" # [testenv:typecheck] # deps = mypy [testenv:docs] deps = sphinx - """ -) + """) def test_add_prefix(): diff --git a/tests/test_single_selection.py b/tests/test_single_selection.py index 48f58a3..16f66d3 100644 --- a/tests/test_single_selection.py +++ b/tests/test_single_selection.py @@ -3,15 +3,13 @@ from texted import blank, contains, find, until, whilist -example = cleandoc( - """ +example = cleandoc(""" # [testenv:typecheck] # deps = mypy [testenv:docs] deps = sphinx - """ -) + """) def apply_selection(text, *select):