summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2022-03-21 17:48:20 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2022-03-23 19:57:20 +0100
commitbdeb7e5f0cdafab92efc3fe52b4d1e94ee3344e5 (patch)
tree7de793a1895346c5b47a9db7834bd04b100dfe2b /script
parent536087e448f9204ddbaea10a55ca5eab7d64de0d (diff)
downloadpylint-git-bdeb7e5f0cdafab92efc3fe52b4d1e94ee3344e5.tar.gz
Add a script to update the CONTRIBUTORS.txt
Diffstat (limited to 'script')
-rw-r--r--script/__init__.py3
-rw-r--r--script/bump_changelog.py4
-rw-r--r--script/copyright.txt3
-rw-r--r--script/create_contributor_list.py21
-rw-r--r--script/fix_documentation.py4
-rw-r--r--script/get_unused_message_id_category.py1
6 files changed, 36 insertions, 0 deletions
diff --git a/script/__init__.py b/script/__init__.py
index e69de29bb..e8a8ff79f 100644
--- a/script/__init__.py
+++ b/script/__init__.py
@@ -0,0 +1,3 @@
+# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
+# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
diff --git a/script/bump_changelog.py b/script/bump_changelog.py
index 6e25719d4..f1edcdbb0 100644
--- a/script/bump_changelog.py
+++ b/script/bump_changelog.py
@@ -1,3 +1,7 @@
+# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
+# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
+
# ORIGINAL here: https://github.com/PyCQA/astroid/blob/main/script/bump_changelog.py
# DO NOT MODIFY DIRECTLY
diff --git a/script/copyright.txt b/script/copyright.txt
new file mode 100644
index 000000000..e8a8ff79f
--- /dev/null
+++ b/script/copyright.txt
@@ -0,0 +1,3 @@
+# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
+# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
diff --git a/script/create_contributor_list.py b/script/create_contributor_list.py
new file mode 100644
index 000000000..9b336a01b
--- /dev/null
+++ b/script/create_contributor_list.py
@@ -0,0 +1,21 @@
+# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
+# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
+
+from pathlib import Path
+
+from contributors_txt import create_contributors_txt
+
+BASE_DIRECTORY = Path(__file__).parent.parent
+ALIASES_FILE = BASE_DIRECTORY / "script/.contributors_aliases.json"
+DEFAULT_CONTRIBUTOR_PATH = BASE_DIRECTORY / "CONTRIBUTORS.txt"
+
+
+def main():
+ create_contributors_txt(
+ aliases_file=ALIASES_FILE, output=DEFAULT_CONTRIBUTOR_PATH, verbose=True
+ )
+
+
+if __name__ == "__main__":
+ main()
diff --git a/script/fix_documentation.py b/script/fix_documentation.py
index 0fc4e347e..24dd0097e 100644
--- a/script/fix_documentation.py
+++ b/script/fix_documentation.py
@@ -1,3 +1,7 @@
+# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
+# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
+# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
+
"""Small script to fix various issues with the documentation. Used by pre-commit."""
import argparse
import re
diff --git a/script/get_unused_message_id_category.py b/script/get_unused_message_id_category.py
index 95d7ac3e3..7bf1a1343 100644
--- a/script/get_unused_message_id_category.py
+++ b/script/get_unused_message_id_category.py
@@ -1,6 +1,7 @@
"""Small script to get a new unused message id category."""
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
+# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
from typing import List