diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7022f70..fe8018f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ default_language_version: python: python3.10 repos: - repo: https://github.com/PyCQA/autoflake - rev: v2.2.1 + rev: v2.3.0 hooks: - id: autoflake name: autoflake @@ -21,7 +21,7 @@ repos: - id: reorder-python-imports args: ['--application-directories=.:src:tests', --py36-plus] - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.2.0 hooks: - id: black args: [--safe, --quiet] diff --git a/tests/test_esss_fix_format.py b/tests/test_esss_fix_format.py index 9e1fc76..d639d6c 100644 --- a/tests/test_esss_fix_format.py +++ b/tests/test_esss_fix_format.py @@ -354,7 +354,7 @@ def test_python_with_bom(tmp_path: Path, sort_cfg_to_tmp: None, check: bool) -> "source", [ "", - '"""\nisort:skip_file\n"""\nimport sys\nimport os\n', + '"""\nisort:skip_file\n"""\n\nimport sys\nimport os\n', "# isort:skip_file\nimport sys\nimport os\n", ], ids=[