Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion jupyter_packaging/setupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
contains a set of useful utilities for including npm packages
within a Python package.
"""

import functools
import io
import logging
Expand Down Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading