Skip to content

Commit 1622459

Browse files
Simplify hard to maintain copyright notice (#1441)
* Simplify hard to maintain copyright notice git is the source of truth for the copyright, copyrite (the tool) was taking exponentially longer with each release, and it's polluting the code with sometime as much as 50 lines of names. * Add a pre-commit hook to check the copyright notice * Fix the existing file so they have a notice * Fix the spacing after the copyright notice * Add a script to generate the CONTRIBUTORS.txt Co-authored-by: Daniël van Noord <[email protected]>
1 parent e346d42 commit 1622459

File tree

140 files changed

+589
-1260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+589
-1260
lines changed

.copyrite_aliases

Lines changed: 0 additions & 69 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ repos:
2020
- --expand-star-imports
2121
- --remove-duplicate-keys
2222
- --remove-unused-variables
23+
- repo: https://github.com/Pierre-Sassoulas/copyright_notice_precommit
24+
rev: 6f5a59c3e1cb0f20731eb1ff32622c9a2fc72d9a
25+
hooks:
26+
- id: copyright-notice
27+
args: ["--notice=script/copyright.txt", "--enforce-all", "--autofix"]
28+
exclude: tests/testdata|setup.py
29+
types: [python]
2330
- repo: https://github.com/asottile/pyupgrade
2431
rev: v2.31.0
2532
hooks:

CONTRIBUTORS.txt

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
# This file is autogenerated by 'contributors-txt',
2+
# using the configuration in 'script/.contributors_aliases.json'
3+
# please do not modify manually
4+
5+
Maintainers
6+
-----------
7+
- Claudiu Popa <[email protected]>
8+
- Sylvain Thénault <[email protected]>
9+
- Pierre Sassoulas <[email protected]>
10+
- hippo91 <[email protected]>
11+
- Marc Mueller <[email protected]>
12+
- Daniël van Noord <[email protected]>
13+
- Bryce Guinta <[email protected]>
14+
- Ceridwen <[email protected]>
15+
- Łukasz Rogalski <[email protected]>
16+
- Florian Bruhin <[email protected]>
17+
- Ashley Whetter <[email protected]>
18+
- Jacob Walls <[email protected]>
19+
- Dimitri Prybysh <[email protected]>
20+
- Areveny <[email protected]>
21+
22+
23+
Contributors
24+
------------
25+
- LOGILAB S.A. (Paris, FRANCE) <[email protected]>
26+
- Google, Inc.
27+
- Nick Drozd <[email protected]>
28+
- Andrew Haigh <[email protected]>
29+
- David Liu <[email protected]>
30+
- Eevee (Alex Munroe) <[email protected]>
31+
- David Gilman <[email protected]>
32+
- Julien Jehannet <[email protected]>
33+
- Calen Pennington <[email protected]>
34+
- Phil Schaf <[email protected]>
35+
- Alex Hall <[email protected]>
36+
- jarradhope
37+
- Tushar Sadhwani <[email protected]>
38+
- Tim Martin <[email protected]>
39+
- Raphael Gaschignard <[email protected]>
40+
- Radosław Ganczarek <[email protected]>
41+
- Ioana Tagirta <[email protected]>
42+
43+
- Derek Gustafson <[email protected]>
44+
- David Shea <[email protected]>
45+
- Daniel Harding <[email protected]>
46+
- Ville Skyttä <[email protected]>
47+
- Rene Zhang <[email protected]>
48+
- Philip Lorenz <[email protected]>
49+
- Mario Corchero <[email protected]>
50+
- Marien Zwart <[email protected]>
51+
- FELD Boris <[email protected]>
52+
- Enji Cooper <[email protected]>
53+
- AndroWiiid <[email protected]>
54+
- doranid <[email protected]>
55+
- brendanator <[email protected]>
56+
- Tomas Gavenciak <[email protected]>
57+
- Thomas Hisch <[email protected]>
58+
- Stefan Scherfke <[email protected]>
59+
- Sergei Lebedev <[email protected]>
60+
- Ram Rachum <[email protected]>
61+
- Peter Pentchev <[email protected]>
62+
- Peter Kolbus <[email protected]>
63+
- Omer Katz <[email protected]>
64+
- Moises Lopez <[email protected]>
65+
- Michael <[email protected]>
66+
- Keichi Takahashi <[email protected]>
67+
- Kavins Singh <[email protected]>
68+
- Karthikeyan Singaravelan <[email protected]>
69+
- Joshua Cannon <[email protected]>
70+
- John Vandenberg <[email protected]>
71+
- Jacob Bogdanov <[email protected]>
72+
- François Mockers
73+
- David Euresti <[email protected]>
74+
- David Cain <[email protected]>
75+
- Anthony Sottile <[email protected]>
76+
- Alexander Shadchin <[email protected]>
77+
- wgehalo <[email protected]>
78+
- tristanlatr <[email protected]>
79+
80+
81+
- platings
82+
- mathieui <[email protected]>
83+
- markmcclain <[email protected]>
84+
85+
- ioanatia <[email protected]>
86+
87+
- carl
88+
- alain lefroy
89+
- Zbigniew Jędrzejewski-Szmek <[email protected]>
90+
- Zac Hatfield-Dodds <[email protected]>
91+
- Vilnis Termanis <[email protected]>
92+
- Valentin Valls <[email protected]>
93+
- Uilian Ries <[email protected]>
94+
- Tomas Novak <[email protected]>
95+
- Thirumal Venkat <[email protected]>
96+
- SupImDos <[email protected]>
97+
- Stanislav Levin <[email protected]>
98+
- Simon Hewitt <[email protected]>
99+
- Serhiy Storchaka <[email protected]>
100+
- Roy Wright <[email protected]>
101+
- Robin Jarry <[email protected]>
102+
- René Fritze <[email protected]>
103+
- Redoubts <[email protected]>
104+
- Philipp Hörist <[email protected]>
105+
- Peter de Blanc <[email protected]>
106+
- Peter Talley <[email protected]>
107+
- Paligot Gérard <[email protected]>
108+
- Ovidiu Sabou <[email protected]>
109+
- Nicolas Noirbent <[email protected]>
110+
- Neil Girdhar <[email protected]>
111+
- Michał Masłowski <[email protected]>
112+
- Michael K <[email protected]>
113+
- Mateusz Bysiek <[email protected]>
114+
- Mark Gius
115+
- Mark Byrne <[email protected]>
116+
- Leandro T. C. Melo <[email protected]>
117+
- Konrad Weihmann <[email protected]>
118+
- Kian Meng, Ang <[email protected]>
119+
- Jörg Thalheim <[email protected]>
120+
- Jonathan Striebel <[email protected]>
121+
- John Belmonte <[email protected]>
122+
- Jeff Widman <[email protected]>
123+
- Jeff Quast <[email protected]>
124+
- Jarrad Hope <[email protected]>
125+
- Jared Garst <[email protected]>
126+
- Jakub Wilk <[email protected]>
127+
- Iva Miholic <[email protected]>
128+
- Ionel Maries Cristian <[email protected]>
129+
- Hugo van Kemenade <[email protected]>
130+
- HoverHell <[email protected]>
131+
- HQupgradeHQ <[email protected]>
132+
- Grygorii Iermolenko <[email protected]>
133+
- Gregory P. Smith <[email protected]>
134+
- Giuseppe Scrivano <[email protected]>
135+
- Frédéric Chapoton <[email protected]>
136+
- Francis Charette Migneault <[email protected]>
137+
- Felix Mölder <[email protected]>
138+
- Federico Bond <[email protected]>
139+
- DudeNr33 <[email protected]>
140+
- Dmitry Shachnev <[email protected]>
141+
- Denis Laxalde <[email protected]>
142+
- David Poirier <[email protected]>
143+
- Dave Baum <[email protected]>
144+
- Daniel Martin <[email protected]>
145+
- Daniel Colascione <[email protected]>
146+
- Damien Baty <[email protected]>
147+
- Craig Franklin <[email protected]>
148+
- Colin Kennedy <[email protected]>
149+
- Cole Robinson <[email protected]>
150+
- Christoph Reiter <[email protected]>
151+
- Chris Philip <[email protected]>
152+
- BioGeek <[email protected]>
153+
- Bianca Power <[email protected]>
154+
- Benjamin Elven <[email protected]>
155+
- Becker Awqatty <[email protected]>
156+
157+
- Azeem Bande-Ali <[email protected]>
158+
- Aru Sahni <[email protected]>
159+
- Artsiom Kaval <[email protected]>
160+
- Anubhav <[email protected]>
161+
- Antoine Boellinger <[email protected]>
162+
- Alphadelta14 <[email protected]>
163+
- Alexander Presnyakov <[email protected]>
164+
- Ahmed Azzaoui <[email protected]>

astroid/__init__.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
# Copyright (c) 2006-2013, 2015 LOGILAB S.A. (Paris, FRANCE) <[email protected]>
2-
# Copyright (c) 2014 Google, Inc.
3-
# Copyright (c) 2014 Eevee (Alex Munroe) <[email protected]>
4-
# Copyright (c) 2015-2016, 2018, 2020 Claudiu Popa <[email protected]>
5-
# Copyright (c) 2015-2016 Ceridwen <[email protected]>
6-
# Copyright (c) 2016 Derek Gustafson <[email protected]>
7-
# Copyright (c) 2016 Moises Lopez <[email protected]>
8-
# Copyright (c) 2018 Bryce Guinta <[email protected]>
9-
# Copyright (c) 2019 Nick Drozd <[email protected]>
10-
# Copyright (c) 2020-2021 hippo91 <[email protected]>
11-
# Copyright (c) 2021-2022 Marc Mueller <[email protected]>
12-
# Copyright (c) 2021 Pierre Sassoulas <[email protected]>
13-
# Copyright (c) 2021 Daniël van Noord <[email protected]>
14-
# Copyright (c) 2022 tristanlatr <[email protected]>
15-
161
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
172
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
3+
# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt
184

195
"""Python Abstract Syntax Tree New Generation
206

astroid/__pkginfo__.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,6 @@
1-
# Copyright (c) 2006-2014 LOGILAB S.A. (Paris, FRANCE) <[email protected]>
2-
# Copyright (c) 2014-2020 Claudiu Popa <[email protected]>
3-
# Copyright (c) 2014 Google, Inc.
4-
# Copyright (c) 2015-2017 Ceridwen <[email protected]>
5-
# Copyright (c) 2015 Florian Bruhin <[email protected]>
6-
# Copyright (c) 2015 Radosław Ganczarek <[email protected]>
7-
# Copyright (c) 2016 Moises Lopez <[email protected]>
8-
# Copyright (c) 2017 Hugo <[email protected]>
9-
# Copyright (c) 2017 Łukasz Rogalski <[email protected]>
10-
# Copyright (c) 2017 Calen Pennington <[email protected]>
11-
# Copyright (c) 2018 Ville Skyttä <[email protected]>
12-
# Copyright (c) 2018 Ashley Whetter <[email protected]>
13-
# Copyright (c) 2018 Bryce Guinta <[email protected]>
14-
# Copyright (c) 2019 Uilian Ries <[email protected]>
15-
# Copyright (c) 2019 Thomas Hisch <[email protected]>
16-
# Copyright (c) 2020-2021 hippo91 <[email protected]>
17-
# Copyright (c) 2020 David Gilman <[email protected]>
18-
# Copyright (c) 2020 Konrad Weihmann <[email protected]>
19-
# Copyright (c) 2020 Felix Mölder <[email protected]>
20-
# Copyright (c) 2020 Michael <[email protected]>
21-
# Copyright (c) 2021-2022 Pierre Sassoulas <[email protected]>
22-
# Copyright (c) 2021 Marc Mueller <[email protected]>
23-
# Copyright (c) 2022 Alexander Shadchin <[email protected]>
24-
251
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
262
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
3+
# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt
274

285
__version__ = "2.10.1-dev0"
296
version = __version__

astroid/_ast.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
2+
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
3+
# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt
4+
15
import ast
26
import sys
37
import types

astroid/arguments.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
# Copyright (c) 2015-2016, 2018-2020 Claudiu Popa <[email protected]>
2-
# Copyright (c) 2015-2016 Ceridwen <[email protected]>
3-
# Copyright (c) 2018 Bryce Guinta <[email protected]>
4-
# Copyright (c) 2018 Nick Drozd <[email protected]>
5-
# Copyright (c) 2018 Anthony Sottile <[email protected]>
6-
# Copyright (c) 2020 hippo91 <[email protected]>
7-
# Copyright (c) 2021 Pierre Sassoulas <[email protected]>
8-
# Copyright (c) 2021 Tushar Sadhwani <[email protected]>
9-
# Copyright (c) 2021 David Liu <[email protected]>
10-
# Copyright (c) 2021 Marc Mueller <[email protected]>
11-
# Copyright (c) 2022 Daniël van Noord <[email protected]>
12-
# Copyright (c) 2022 Alexander Shadchin <[email protected]>
13-
141
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
152
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
3+
# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt
4+
165
from typing import Optional, Set
176

187
from astroid import nodes

astroid/astroid_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
1010
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
11-
11+
# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt
1212

1313
from astroid.manager import AstroidManager
1414

astroid/bases.py

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
1-
# Copyright (c) 2009-2011, 2013-2014 LOGILAB S.A. (Paris, FRANCE) <[email protected]>
2-
# Copyright (c) 2012 FELD Boris <[email protected]>
3-
# Copyright (c) 2014-2020 Claudiu Popa <[email protected]>
4-
# Copyright (c) 2014 Google, Inc.
5-
# Copyright (c) 2014 Eevee (Alex Munroe) <[email protected]>
6-
# Copyright (c) 2015-2016 Ceridwen <[email protected]>
7-
# Copyright (c) 2015 Florian Bruhin <[email protected]>
8-
# Copyright (c) 2016-2017 Derek Gustafson <[email protected]>
9-
# Copyright (c) 2017 Calen Pennington <[email protected]>
10-
# Copyright (c) 2018-2019 Nick Drozd <[email protected]>
11-
# Copyright (c) 2018-2019 hippo91 <[email protected]>
12-
# Copyright (c) 2018 Ville Skyttä <[email protected]>
13-
# Copyright (c) 2018 Bryce Guinta <[email protected]>
14-
# Copyright (c) 2018 Daniel Colascione <[email protected]>
15-
# Copyright (c) 2019 Hugo van Kemenade <[email protected]>
16-
# Copyright (c) 2021 Pierre Sassoulas <[email protected]>
17-
# Copyright (c) 2021 Tushar Sadhwani <[email protected]>
18-
# Copyright (c) 2021 pre-commit-ci[bot] <[email protected]>
19-
# Copyright (c) 2021 Daniël van Noord <[email protected]>
20-
# Copyright (c) 2021 David Liu <[email protected]>
21-
# Copyright (c) 2021 doranid <[email protected]>
22-
# Copyright (c) 2021 Marc Mueller <[email protected]>
23-
# Copyright (c) 2021 Andrew Haigh <[email protected]>
24-
# Copyright (c) 2022 Alexander Shadchin <[email protected]>
25-
261
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
272
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
3+
# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt
284

295
"""This module contains base classes and functions for the nodes and some
306
inference utils.

astroid/brain/brain_argparse.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
2+
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
3+
# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt
4+
15
from astroid import arguments, inference_tip, nodes
26
from astroid.exceptions import UseInferenceDefault
37
from astroid.manager import AstroidManager

0 commit comments

Comments
 (0)