Debian Codegraph @

script/create_contributor_list.py

raw
1 # Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
2 # For details: https://github.com/pylint-dev/astroid/blob/main/LICENSE
3 # Copyright (c) https://github.com/pylint-dev/astroid/blob/main/CONTRIBUTORS.txt
4
5 from pathlib import Path
6
7 from contributors_txt import create_contributors_txt
8
9 CWD = Path(".").absolute()
10 ASTROID_BASE_DIRECTORY = Path(__file__).parent.parent.absolute()
11 ALIASES_FILE = (
12 ASTROID_BASE_DIRECTORY / "script/.contributors_aliases.json"
13 ).relative_to(CWD)
14 DEFAULT_CONTRIBUTOR_PATH = (ASTROID_BASE_DIRECTORY / "CONTRIBUTORS.txt").relative_to(
15 CWD
16 )
17
18
19 def main():
20 create_contributors_txt(
21 aliases_file=ALIASES_FILE,
22 output=DEFAULT_CONTRIBUTOR_PATH,
23 verbose=True,
24 no_bots=True,
25 )
26
27
28 if __name__ == "__main__":
29 main()