From d18bf146ca3dd4b70e278811c87187f569d3fbc6 Mon Sep 17 00:00:00 2001
From: Vincent Texier <vit@free.fr>
Date: Tue, 26 Oct 2021 11:59:47 +0200
Subject: [PATCH] [enh] add autohooks.plugins.insert_license

---
 pyproject.toml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pyproject.toml b/pyproject.toml
index 4a1b3230..9c5a9fc0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -31,6 +31,8 @@ pre-commit-hooks = {git = "https://github.com/Lucas-C/pre-commit-hooks"}
 gitlab-ci-linter = {git = "https://gitlab.com/devopshq/gitlab-ci-linter"}
 #autohooks-plugin-mypy = {path = "../autohooks-plugin-mypy", develop = true}
 autohooks-plugin-mypy = "^0.1.0"
+#autohooks-plugin-insert-license = {path = "../autohooks-plugin-insert-license", develop = true}
+autohooks-plugin-insert-license = "^0.1.0"
 
 [build-system]
 requires = ["poetry-core>=1.0.0a5"]
@@ -43,6 +45,7 @@ pre-commit = [
     "autohooks.plugins.isort",
     "autohooks.plugins.pylint",
     "autohooks.plugins.mypy",
+    "autohooks.plugins.insert_license",
 ]
 
 [tool.isort]
@@ -50,3 +53,6 @@ profile = "black"
 
 [tool.autohooks.plugins.mypy]
 arguments = ["--ignore-missing-imports"]
+
+[tool.autohooks.plugins.insert_license]
+arguments = ["--license-filepath=license_header.txt"]
-- 
GitLab