Skip to content

Commit 5f46552

Browse files
[CI/CD] Fix for GHI #444
Changes in file tests/check_pip: * Workaround for pycodestyle ("MIT")
1 parent 658a649 commit 5f46552

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/check_pip

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,16 @@ if [[ $( \uname -s ) == "*arwin" ]] ; then
260260
LICENSE_OPTIONS="--python python3 ${LICENSE_OPTIONS} --ignore-packages certifi"
261261
else
262262
PIP_ENV_FLAGS=""
263-
LICENSE_OPTIONS="${LICENSE_OPTIONS} --ignore-packages chardet"
263+
LICENSE_OPTIONS="${LICENSE_OPTIONS} --partial-match --ignore-packages chardet"
264264
fi ;
265+
# ignore common but OPTIONAL and NOT-BUNDLED packages
265266
# urllib3 is licensed under MIT, but reports "UNKNOWN"
266267
# roman-numerals-py is Public Domain but reports multiple
267268
# Sphinx is licensed under BSD, but reports "UNKNOWN"
268269
# typing_extensions is licensed under Python Software Foundation License, but reports "UNKNOWN"
269270
# pytest-enabler is licensed under MIT, but reports "UNKNOWN"
270-
LICENSE_OPTIONS="${LICENSE_OPTIONS} urllib3 pip setuptools wheel build hypothesis certifi roman-numerals-py Sphinx typing_extensions pytest-enabler"
271+
# pycodestyle is licensed under MIT, but reports just "MIT" (which does not match "MIT License")
272+
LICENSE_OPTIONS="${LICENSE_OPTIONS} urllib3 pip setuptools wheel build hypothesis certifi roman-numerals-py Sphinx typing_extensions pytest-enabler pycodestyle"
271273
# Enable auto-fix if '--fix' argument is provided
272274
if [[ "$1" == "--fix" ]]; then
273275
AUDIT_OPTIONS="--fix --strict ${AUDIT_OPTIONS}"

0 commit comments

Comments
 (0)