diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eb5c3b3..5e9f817 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,21 +2,21 @@ ci: autoupdate_schedule: monthly repos: - - repo: https://github.com/psf/black - rev: 23.12.1 # Replace by any tag/version: https://github.com/psf/black/tags + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.3.1 # Replace by any tag/version: https://github.com/psf/black/tags hooks: - id: black language_version: python3 # Should be a command that runs python3.6+ - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 9.0.0a3 hooks: - id: isort files: \.py$ args: [--profile=black] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v6.0.0 hooks: - id: end-of-file-fixer - id: check-case-conflict @@ -32,7 +32,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/sirosen/check-jsonschema - rev: 0.27.3 + rev: 0.37.2 hooks: - id: check-jsonschema name: "Check GitHub Workflows" diff --git a/jupyter_packaging/setupbase.py b/jupyter_packaging/setupbase.py index f0ebbf4..3ebbb00 100644 --- a/jupyter_packaging/setupbase.py +++ b/jupyter_packaging/setupbase.py @@ -8,6 +8,7 @@ contains a set of useful utilities for including npm packages within a Python package. """ + import functools import io import logging @@ -954,7 +955,7 @@ def _iexplode_path(path): Splits path recursively with os.path.split(). """ - (head, tail) = os.path.split(str(path)) + head, tail = os.path.split(str(path)) if not head or (not tail and head == path): if head: yield head diff --git a/tests/conftest.py b/tests/conftest.py index 2896e3c..0c92bef 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -51,9 +51,7 @@ def pyproject_toml(): include_package_data = True py_modules = foo python_requires = >=3.6 -""".format( - name=name -) +""".format(name=name) setup_maker = lambda name=NAME, data_files_spec=None, pre_dist=None, ensured_targets=None, skip_if_exists=None, **kwargs: """ from jupyter_packaging import get_data_files, wrap_installers, npm_builder