Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
check licence + copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Feb 26, 2024
1 parent ee072a9 commit c957fc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ecml_tools/create/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ def __init__(self, config, *args, **kwargs):
if not isinstance(self.dates, dict):
raise ValueError(f"Dates must be a dict. Got {self.dates}")

if "licence" not in self:
raise ValueError("Must provide a licence in the config.")
if "copyright" not in self:
raise ValueError("Must provide a copyright in the config.")

self.normalise()

def normalise(self):
Expand Down

0 comments on commit c957fc4

Please sign in to comment.