diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4f44e01..3bf2edb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ exclude: > repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-json - id: check-yaml @@ -17,11 +17,11 @@ repos: - id: trailing-whitespace - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.2.0 hooks: - id: flake8 - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 25.1.0 hooks: - id: black diff --git a/sphinx_copybutton/__init__.py b/sphinx_copybutton/__init__.py index 953e7f3..62c90c3 100644 --- a/sphinx_copybutton/__init__.py +++ b/sphinx_copybutton/__init__.py @@ -1,4 +1,5 @@ """A small sphinx extension to add "copy" buttons to code blocks.""" + from pathlib import Path from sphinx.util import logging