Skip to content

Commit 404fe9f

Browse files
authored
Merge pull request #176 from jupyter/pre-commit-ci-update-config
2 parents ea6ae43 + 3987741 commit 404fe9f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33

44
repos:
55
- repo: https://github.com/psf/black
6-
rev: 22.12.0 # Replace by any tag/version: https://github.com/psf/black/tags
6+
rev: 23.1.0 # Replace by any tag/version: https://github.com/psf/black/tags
77
hooks:
88
- id: black
99
language_version: python3 # Should be a command that runs python3.6+
@@ -32,7 +32,7 @@ repos:
3232
- id: trailing-whitespace
3333

3434
- repo: https://github.com/sirosen/check-jsonschema
35-
rev: 0.19.2
35+
rev: 0.21.0
3636
hooks:
3737
- id: check-jsonschema
3838
name: "Check GitHub Workflows"

jupyter_packaging/setupbase.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ def run(self):
752752
package_data = self.distribution.package_data
753753
package_spec = package_data_spec or {}
754754

755-
for (key, patterns) in package_spec.items():
755+
for key, patterns in package_spec.items():
756756
files = _get_package_data(key, patterns)
757757
if exclude is not None:
758758
files = [f for f in files if not exclude(f)]
@@ -828,12 +828,12 @@ def _get_data_files(
828828

829829
# Extract the existing data files into a staging object.
830830
file_data = defaultdict(list)
831-
for (path, files) in existing or []:
831+
for path, files in existing or []:
832832
file_data[path] = files
833833

834834
# Extract the files and assign them to the proper data
835835
# files path.
836-
for (path, dname, pattern) in data_specs or []:
836+
for path, dname, pattern in data_specs or []:
837837
dname = Path(dname)
838838
if dname.is_absolute():
839839
dname = dname.relative_to(top)
@@ -854,7 +854,7 @@ def _get_data_files(
854854

855855
# Construct the data files spec.
856856
data_files = []
857-
for (path, files) in file_data.items():
857+
for path, files in file_data.items():
858858
data_files.append((path, files))
859859
return data_files
860860

0 commit comments

Comments
 (0)