diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99300c9..2218bed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,14 @@ repos: - - repo: https://github.com/psf/black - rev: 20.8b1 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: "3.8.4" + rev: "7.3.0" hooks: - id: flake8 - repo: https://github.com/asottile/pyupgrade - rev: v2.7.4 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py36-plus] diff --git a/dectate/config.py b/dectate/config.py index cfbd18e..4dcb7c2 100644 --- a/dectate/config.py +++ b/dectate/config.py @@ -11,7 +11,6 @@ from .toposort import topological_sort from .sentinel import NOT_FOUND - order_count = 0 diff --git a/dectate/sphinxext.py b/dectate/sphinxext.py index 2373004..910365c 100644 --- a/dectate/sphinxext.py +++ b/dectate/sphinxext.py @@ -4,6 +4,7 @@ object using the directive decorator, and the signature needs to be obtained from the action class's ``__init__`` manually. """ + import inspect