Skip to content

Commit 9369987

Browse files
Merge pull request #524 from Kimoby/database-repo
Database Hyperparameter Repository with SQLAlchemy
2 parents 3156af4 + 5dec2a6 commit 9369987

10 files changed

+849
-180
lines changed

.github/workflows/license_checker_v2.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
help="A list of python library name you want to check the license of.")
1313
parser.add_argument('--accepted_licenses', nargs='*',
1414
help="A list of license which are considered acceptable for your project.",
15-
default=["Apache Software License", "Apache 2.0", "BSD", "ZLIB", "MIT", "Unlicense", "CC0", "CC-BY","PSF", "MPL", "Mozilla Public License 2.0", "Historical Permission Notice and Disclaimer", "HPND"])
15+
default=["Apache Software License", "Apache 2.0", "BSD", "ZLIB", "MIT", "Unlicense", "CC0", "CC-BY", "PSF", "MPL", "Mozilla Public License 2.0", "Historical Permission Notice and Disclaimer", "HPND", "LGPL"])
1616
parser.add_argument('--forbidden_licenses', nargs='*',
1717
help="A list of license which are considered problematic for your project.",
1818
default=["GNU", "GPL", "Commons Clause", "BY-N"])
@@ -64,9 +64,11 @@ def is_license_in_list(license, license_list):
6464
print(f"{library_name}: {library_license}")
6565
# First checks if its refused_licenses, then if its in accepted_licenses, else add in the maybe list
6666

67-
if is_license_in_list(library_license, args.forbidden_licenses):
67+
is_forbidden = is_license_in_list(library_license, args.forbidden_licenses)
68+
is_accepted = is_license_in_list(library_license, args.accepted_licenses)
69+
if is_forbidden and not is_accepted:
6870
refused_libraries.append(library_name)
69-
elif is_license_in_list(library_license, args.accepted_licenses):
71+
elif is_accepted and not is_forbidden:
7072
accepted_libraries.append(library_name)
7173
else:
7274
maybe_libraries.append(library_name)

neuraxle/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.7.0"
1+
__version__ = "0.7.1"

neuraxle/metaopt/data/db_hp_repo.py

-151
This file was deleted.

0 commit comments

Comments
 (0)