Skip to content

Commit

Permalink
Merge pull request #524 from Kimoby/database-repo
Browse files Browse the repository at this point in the history
Database Hyperparameter Repository with SQLAlchemy
  • Loading branch information
guillaume-chevalier authored May 11, 2022
2 parents 3156af4 + 5dec2a6 commit 9369987
Show file tree
Hide file tree
Showing 10 changed files with 849 additions and 180 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/license_checker_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
help="A list of python library name you want to check the license of.")
parser.add_argument('--accepted_licenses', nargs='*',
help="A list of license which are considered acceptable for your project.",
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"])
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"])
parser.add_argument('--forbidden_licenses', nargs='*',
help="A list of license which are considered problematic for your project.",
default=["GNU", "GPL", "Commons Clause", "BY-N"])
Expand Down Expand Up @@ -64,9 +64,11 @@ def is_license_in_list(license, license_list):
print(f"{library_name}: {library_license}")
# First checks if its refused_licenses, then if its in accepted_licenses, else add in the maybe list

if is_license_in_list(library_license, args.forbidden_licenses):
is_forbidden = is_license_in_list(library_license, args.forbidden_licenses)
is_accepted = is_license_in_list(library_license, args.accepted_licenses)
if is_forbidden and not is_accepted:
refused_libraries.append(library_name)
elif is_license_in_list(library_license, args.accepted_licenses):
elif is_accepted and not is_forbidden:
accepted_libraries.append(library_name)
else:
maybe_libraries.append(library_name)
Expand Down
2 changes: 1 addition & 1 deletion neuraxle/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.7.0"
__version__ = "0.7.1"
151 changes: 0 additions & 151 deletions neuraxle/metaopt/data/db_hp_repo.py

This file was deleted.

Loading

0 comments on commit 9369987

Please sign in to comment.