mirror of
https://github.com/qurator-spk/dinglehopper.git
synced 2025-06-09 20:00:01 +02:00
✔ pre-commit: Add license check
This commit is contained in:
parent
f2e290dffe
commit
3233dbcc8f
3 changed files with 41 additions and 2 deletions
|
@ -16,7 +16,7 @@ repos:
|
||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.5.3
|
rev: v0.5.4
|
||||||
hooks:
|
hooks:
|
||||||
- args:
|
- args:
|
||||||
- --fix
|
- --fix
|
||||||
|
@ -24,7 +24,7 @@ repos:
|
||||||
id: ruff
|
id: ruff
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v1.10.1
|
rev: v1.11.0
|
||||||
hooks:
|
hooks:
|
||||||
- additional_dependencies:
|
- additional_dependencies:
|
||||||
- types-setuptools
|
- types-setuptools
|
||||||
|
@ -39,3 +39,9 @@ repos:
|
||||||
rev: v0.3.3post1
|
rev: v0.3.3post1
|
||||||
hooks:
|
hooks:
|
||||||
- id: pre-commit-update
|
- id: pre-commit-update
|
||||||
|
|
||||||
|
- repo: https://github.com/dhatim/python-license-check
|
||||||
|
rev: 0.9.2
|
||||||
|
hooks:
|
||||||
|
- id: liccheck
|
||||||
|
language: system
|
||||||
|
|
|
@ -77,3 +77,34 @@ disallow_untyped_calls = false
|
||||||
|
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
select = ["E", "F", "I"]
|
select = ["E", "F", "I"]
|
||||||
|
|
||||||
|
|
||||||
|
[tool.liccheck]
|
||||||
|
authorized_licenses = [
|
||||||
|
"bsd",
|
||||||
|
"new bsd",
|
||||||
|
"bsd license",
|
||||||
|
"new bsd license",
|
||||||
|
"simplified bsd",
|
||||||
|
"apache",
|
||||||
|
"apache 2.0",
|
||||||
|
"apache software license",
|
||||||
|
"apache software",
|
||||||
|
"apache license 2.0",
|
||||||
|
"gnu lgpl",
|
||||||
|
"lgpl with exceptions or zpl",
|
||||||
|
"GNU Library or Lesser General Public License (LGPL)",
|
||||||
|
"GNU Lesser General Public License v3 (LGPLv3)",
|
||||||
|
"GNU Lesser General Public License v2 or later (LGPLv2+)",
|
||||||
|
"mit",
|
||||||
|
"mit license",
|
||||||
|
"python software foundation",
|
||||||
|
"Historical Permission Notice and Disclaimer (HPND)",
|
||||||
|
"public domain",
|
||||||
|
'The Unlicense (Unlicense)',
|
||||||
|
"isc",
|
||||||
|
'Mozilla Public License 2.0 (MPL 2.0)',
|
||||||
|
]
|
||||||
|
unauthorized_licenses = [
|
||||||
|
"gpl v3",
|
||||||
|
]
|
||||||
|
|
|
@ -10,3 +10,5 @@ mypy
|
||||||
types-lxml
|
types-lxml
|
||||||
types-setuptools
|
types-setuptools
|
||||||
pytest-mypy
|
pytest-mypy
|
||||||
|
|
||||||
|
liccheck
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue