Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add automatic license checking with pylic #3

Merged
merged 16 commits into from
Dec 11, 2023
4 changes: 4 additions & 0 deletions {{cookiecutter.project_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ repos:
hooks:
- id: mypy
args: [--install-types, --non-interactive, --ignore-missing-imports, --show-error-codes]
- repo: https://github.com/ubersan/pylic
rev: v3.5.0
hooks:
- id: pylic
240 changes: 240 additions & 0 deletions {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ build-backend = "{{'poetry.core.masonry.api' if cookiecutter.dependency_manager
{{'pdoc = "^14.1.0"' if cookiecutter.dependency_manager != 'pip' else ' "pdoc==14.1.0",'}}
{{'' if cookiecutter.dependency_manager != 'pip' else ' "coverage[toml]==5.5",'}}{{'readme-coverage-badger = ">=0.1.2,<1.0.0"' if cookiecutter.dependency_manager != 'pip' else '\n "readme-coverage-badger==0.1.2",'}}
{{'click = "^8.1.7"' if cookiecutter.dependency_manager != 'pip' else ' "click==8.1.7",\n]'}}
{{'pylic = "^3.5.0"' if cookiecutter.dependency_manager != "pip" else "pylic==3.5.0",'}}
AJDERS marked this conversation as resolved.
Show resolved Hide resolved
{{'\n[[tool.poetry.source]]\nname = "pypi"\n' if cookiecutter.dependency_manager != 'pip'}}
[tool.black]
line-length = 88
Expand Down Expand Up @@ -74,3 +75,242 @@ testpaths = [
"tests",
"src/{{cookiecutter.project_name}}",
]

[tool.pylic]
safe_licenses = [
"1-clause BSD License",
"Academic Free License v. 3.0",
"Adaptive Public License 1.0",
"Apache License, Version 2.0",
"Apache Software License, version 1.1",
"Apple Public Source License 2.0",
"Artistic License (Perl) 1.0",
"Artistic License 1.0",
"Artistic License 2.0",
"Attribution Assurance License",
"Boost Software License 1.0",
"BSD+Patent",
"Cea Cnrs Inria Logiciel Libre License, version 2.1",
"CERN Open Hardware Licence Version 2 - Permissive",
"CERN Open Hardware Licence Version 2 - Strongly Reciprocal",
"CERN Open Hardware Licence Version 2 - Weakly Reciprocal",
"Common Development and Distribution License 1.0",
"Common Public Attribution License Version 1.0",
"Common Public License Version 1.0",
"Computer Associates Trusted Open Source License 1.1",
"Cryptographic Autonomy License",
"CUA Office Public License",
"Eclipse Public License -v 1.0",
"Eclipse Public License version 2.0",
"eCos License version 2.0",
"Educational Community License, Version 1.0",
"Educational Community License, Version 2.0",
"Eiffel Forum License, version 1",
"Eiffel Forum License, Version 2",
"Entessa Public License Version. 1.0",
"EU DataGrid Software License",
"European Union Public License, version 1.2",
"Fair License",
"Frameworx License 1.0",
"GNU Affero General Public License version 3",
"GNU General Public License version 2",
"GNU General Public License version 3",
"GNU General Public License, version 1",
"GNU Lesser General Public License version 2.1",
"GNU Lesser General Public License version 3",
"GNU LGPL",
"GNU Library General Public License version 2",
"Historical Permission Notice and Disclaimer",
"IBM Public License Version 1.0",
"ICU License",
"Intel Open Source License",
"IPA Font License",
"ISC License",
"Jabber Open Source License",
"JAM License",
"LaTeX Project Public License, Version 1.3c",
"Lawrence Berkeley National Labs BSD Variant License",
"Licence Libre du Québec - Permissive version 1.1",
"Licence Libre du Québec - Réciprocité forte version 1.1",
"Licence Libre du Québec - Réciprocité version 1.1",
"Lucent Public License Version 1.02",
"Lucent Public License, Plan 9, version 1.0",
"Microsoft Public License",
"Microsoft Reciprocal License",
"MirOS License",
"MIT No Attribution License",
"MITRE Collaborative Virtual Workspace License",
"Motosoto Open Source License",
"Mozilla Public License 1.1",
"Mozilla Public License 2.0",
"Mozilla Public License, version 1.0",
"Mulan Permissive Software License v2",
"Multics License",
"NASA Open Source Agreement v1.3",
"NAUMEN Public License",
"Nokia Open Source License Version 1.0a",
"Non-Profit Open Software License version 3.0",
"NTP License",
"Open Group Test Suite License",
"Open Logistics Foundation License v1.3",
"Open Software License 2.1",
"Open Software License, version 1.0",
"OpenLDAP Public License Version 2.8",
"OSET Public License version 2.1",
"PHP License 3.0",
"PHP License 3.01",
"Python License, Version 2",
"RealNetworks Public Source License Version 1.0",
"Reciprocal Public License 1.5",
"Reciprocal Public License, version 1.1",
"SIL OPEN FONT LICENSE",
"Simple Public License",
"Sun Industry Standards Source License",
"Sun Public License, Version 1.0",
"The 2-Clause BSD License",
"The 3-Clause BSD License",
"The CNRI portion of the multi-part Python License",
"The European Union Public License, version 1.1",
"The MIT License",
"The Nethack General Public License",
"The OCLC Research Public License 2.0 License",
"The Open Software License 3.0",
"The PostgreSQL Licence",
"The Q Public License Version",
"The Ricoh Source Code Public License",
"The Sleepycat License",
"The Sybase Open Source Licence",
"The Universal Permissive License Version 1.0",
"The University of Illinois/NCSA Open Source License",
"The Unlicense",
"The Vovida Software License v. 1.0",
"The W3C® SOFTWARE NOTICE AND LICENSE",
"The wxWindows Library Licence",
"The X.Net, Inc. License",
"The zlib/libpng License",
"UNICODE LICENSE V3",
"Unicode, Inc. License Agreement - Data Files and Software",
"Upstream Compatibility License v1.0",
"Zero-Clause BSD",
"Zope Public License 2.0",
"Zope Public License 2.1",
"1-clause BSD License",
"Academic Free License v. 3.0",
"Adaptive Public License 1.0",
"Apache License, Version 2.0",
"Apache Software License, version 1.1",
"Apple Public Source License 2.0",
"Artistic License (Perl) 1.0",
"Artistic License 1.0",
"Artistic License 2.0",
"Attribution Assurance License",
"Boost Software License 1.0",
"BSD+Patent",
"Cea Cnrs Inria Logiciel Libre License, version 2.1",
"CERN Open Hardware Licence Version 2 - Permissive",
"CERN Open Hardware Licence Version 2 - Strongly Reciprocal",
"CERN Open Hardware Licence Version 2 - Weakly Reciprocal",
"Common Development and Distribution License 1.0",
"Common Public Attribution License Version 1.0",
"Common Public License Version 1.0",
"Computer Associates Trusted Open Source License 1.1",
"Cryptographic Autonomy License",
"CUA Office Public License",
"Eclipse Public License -v 1.0",
"Eclipse Public License version 2.0",
"eCos License version 2.0",
"Educational Community License, Version 1.0",
"Educational Community License, Version 2.0",
"Eiffel Forum License, version 1",
"Eiffel Forum License, Version 2",
"Entessa Public License Version. 1.0",
"EU DataGrid Software License",
"European Union Public License, version 1.2",
"Fair License",
"Frameworx License 1.0",
"GNU Affero General Public License version 3",
"GNU General Public License version 2",
"GNU General Public License version 3",
"GNU General Public License, version 1",
"GNU Lesser General Public License version 2.1",
"GNU Lesser General Public License version 3",
"GNU LGPL",
"GNU Library General Public License version 2",
"Historical Permission Notice and Disclaimer",
"IBM Public License Version 1.0",
"ICU License",
"Intel Open Source License",
"IPA Font License",
"ISC License",
"Jabber Open Source License",
"JAM License",
"LaTeX Project Public License, Version 1.3c",
"Lawrence Berkeley National Labs BSD Variant License",
"Licence Libre du Québec - Permissive version 1.1",
"Licence Libre du Québec - Réciprocité forte version 1.1",
"Licence Libre du Québec - Réciprocité version 1.1",
"Lucent Public License Version 1.02",
"Lucent Public License, Plan 9, version 1.0",
"Microsoft Public License",
"Microsoft Reciprocal License",
"MirOS License",
"MIT No Attribution License",
"MITRE Collaborative Virtual Workspace License",
"Motosoto Open Source License",
"Mozilla Public License 1.1",
"Mozilla Public License 2.0",
"Mozilla Public License, version 1.0",
"Mulan Permissive Software License v2",
"Multics License",
"NASA Open Source Agreement v1.3",
"NAUMEN Public License",
"Nokia Open Source License Version 1.0a",
"Non-Profit Open Software License version 3.0",
"NTP License",
"Open Group Test Suite License",
"Open Logistics Foundation License v1.3",
"Open Software License 2.1",
"Open Software License, version 1.0",
"OpenLDAP Public License Version 2.8",
"OSET Public License version 2.1",
"PHP License 3.0",
"PHP License 3.01",
"Python License, Version 2",
"RealNetworks Public Source License Version 1.0",
"Reciprocal Public License 1.5",
"Reciprocal Public License, version 1.1",
"SIL OPEN FONT LICENSE",
"Simple Public License",
"Sun Industry Standards Source License",
"Sun Public License, Version 1.0",
"The 2-Clause BSD License",
"The 3-Clause BSD License",
"The CNRI portion of the multi-part Python License",
"The European Union Public License, version 1.1",
"The MIT License",
"The Nethack General Public License",
"The OCLC Research Public License 2.0 License",
"The Open Software License 3.0",
"The PostgreSQL Licence",
"The Q Public License Version",
"The Ricoh Source Code Public License",
"The Sleepycat License",
"The Sybase Open Source Licence",
"The Universal Permissive License Version 1.0",
"The University of Illinois/NCSA Open Source License",
"The Unlicense",
"The Vovida Software License v. 1.0",
"The W3C® SOFTWARE NOTICE AND LICENSE",
"The wxWindows Library Licence",
"The X.Net, Inc. License",
"The zlib/libpng License",
"UNICODE LICENSE V3",
"Unicode, Inc. License Agreement - Data Files and Software",
"Upstream Compatibility License v1.0",
"Zero-Clause BSD",
"Zope Public License 2.0",
"Zope Public License 2.1",
]
unsafe_packages = [
"unlicensedPackage",
]