8000 Fix flake8 errors · brunobeltran/matplotlib@a0bca7e · GitHub
[go: up one dir, main page]

Skip to content

Commit a0bca7e

Browse files
committed
Fix flake8 errors
1 parent 68d63ce commit a0bca7e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ci/check_wheel_licenses.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env python3
22

3-
"""Check that all .whl files in the dist folder have the correct LICENSE files included.
3+
"""
4+
Check that all .whl files in the dist folder have the correct LICENSE files
5+
included.
46
57
To run:
68
$ python3 setup.py bdist_wheel
@@ -18,11 +20,13 @@
1820
dist_dir = project_dir / 'dist'
1921
license_dir = project_dir / 'LICENSE'
2022

21-
license_file_names = [Path(path).name for path in sorted(license_dir.glob('*'))]
23+
license_file_names = [Path(path).name
24+
for path in sorted(license_dir.glob('*'))]
2225
for wheel in dist_dir.glob('*.whl'):
2326
print(f'Checking LICENSE files in: {wheel}')
2427
with zipfile.ZipFile(wheel) as f:
25-
wheel_license_file_names = [Path(path).name for path in sorted(f.namelist())
28+
wheel_license_file_names = [Path(path).name
29+
for path in sorted(f.namelist 48C5 ())
2630
if '.dist-info/LICENSE' in path]
2731
if wheel_license_file_names != license_file_names:
2832
print(f'LICENSE file(s) missing:\n'

0 commit comments

Comments
 (0)
0