Skip to content

Commit

Permalink
Simplify hard to maintain copyright notice (#1441)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
Pierre-Sassoulas and DanielNoord authored Mar 12, 2022
1 parent e346d42 commit 1622459
Show file tree
Hide file tree
Showing 140 changed files with 589 additions and 1,260 deletions.
69 changes: 0 additions & 69 deletions .copyrite_aliases

This file was deleted.

7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ repos:
- --expand-star-imports
- --remove-duplicate-keys
- --remove-unused-variables
- repo: https://github.com/Pierre-Sassoulas/copyright_notice_precommit
rev: 6f5a59c3e1cb0f20731eb1ff32622c9a2fc72d9a
hooks:
- id: copyright-notice
args: ["--notice=script/copyright.txt", "--enforce-all", "--autofix"]
exclude: tests/testdata|setup.py
types: [python]
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
hooks:
Expand Down
164 changes: 164 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
# This file is autogenerated by 'contributors-txt',
# using the configuration in 'script/.contributors_aliases.json'
# please do not modify manually

Maintainers
-----------
- Claudiu Popa <[email protected]>
- Sylvain Thénault <[email protected]>
- Pierre Sassoulas <[email protected]>
- hippo91 <[email protected]>
- Marc Mueller <[email protected]>
- Daniël van Noord <[email protected]>
- Bryce Guinta <[email protected]>
- Ceridwen <[email protected]>
- Łukasz Rogalski <[email protected]>
- Florian Bruhin <[email protected]>
- Ashley Whetter <[email protected]>
- Jacob Walls <[email protected]>
- Dimitri Prybysh <[email protected]>
- Areveny <[email protected]>


Contributors
------------
- LOGILAB S.A. (Paris, FRANCE) <[email protected]>
- Google, Inc.
- Nick Drozd <[email protected]>
- Andrew Haigh <[email protected]>
- David Liu <[email protected]>
- Eevee (Alex Munroe) <[email protected]>
- David Gilman <[email protected]>
- Julien Jehannet <[email protected]>
- Calen Pennington <[email protected]>
- Phil Schaf <[email protected]>
- Alex Hall <[email protected]>
- jarradhope
- Tushar Sadhwani <[email protected]>
- Tim Martin <[email protected]>
- Raphael Gaschignard <[email protected]>
- Radosław Ganczarek <[email protected]>
- Ioana Tagirta <[email protected]>
- Hugo <[email protected]>
- Derek Gustafson <[email protected]>
- David Shea <[email protected]>
- Daniel Harding <[email protected]>
- Ville Skyttä <[email protected]>
- Rene Zhang <[email protected]>
- Philip Lorenz <[email protected]>
- Mario Corchero <[email protected]>
- Marien Zwart <[email protected]>
- FELD Boris <[email protected]>
- Enji Cooper <[email protected]>
- AndroWiiid <[email protected]>
- doranid <[email protected]>
- brendanator <[email protected]>
- Tomas Gavenciak <[email protected]>
- Thomas Hisch <[email protected]>
- Stefan Scherfke <[email protected]>
- Sergei Lebedev <[email protected]>
- Ram Rachum <[email protected]>
- Peter Pentchev <[email protected]>
- Peter Kolbus <[email protected]>
- Omer Katz <[email protected]>
- Moises Lopez <[email protected]>
- Michael <[email protected]>
- Keichi Takahashi <[email protected]>
- Kavins Singh <[email protected]>
- Karthikeyan Singaravelan <[email protected]>
- Joshua Cannon <[email protected]>
- John Vandenberg <[email protected]>
- Jacob Bogdanov <[email protected]>
- François Mockers
- David Euresti <[email protected]>
- David Cain <[email protected]>
- Anthony Sottile <[email protected]>
- Alexander Shadchin <[email protected]>
- wgehalo <[email protected]>
- tristanlatr <[email protected]>
- rr- <[email protected]>
- raylu <[email protected]>
- platings
- mathieui <[email protected]>
- markmcclain <[email protected]>
- kasium <[email protected]>
- ioanatia <[email protected]>
- grayjk <[email protected]>
- carl
- alain lefroy
- Zbigniew Jędrzejewski-Szmek <[email protected]>
- Zac Hatfield-Dodds <[email protected]>
- Vilnis Termanis <[email protected]>
- Valentin Valls <[email protected]>
- Uilian Ries <[email protected]>
- Tomas Novak <[email protected]>
- Thirumal Venkat <[email protected]>
- SupImDos <[email protected]>
- Stanislav Levin <[email protected]>
- Simon Hewitt <[email protected]>
- Serhiy Storchaka <[email protected]>
- Roy Wright <[email protected]>
- Robin Jarry <[email protected]>
- René Fritze <[email protected]>
- Redoubts <[email protected]>
- Philipp Hörist <[email protected]>
- Peter de Blanc <[email protected]>
- Peter Talley <[email protected]>
- Paligot Gérard <[email protected]>
- Ovidiu Sabou <[email protected]>
- Nicolas Noirbent <[email protected]>
- Neil Girdhar <[email protected]>
- Michał Masłowski <[email protected]>
- Michael K <[email protected]>
- Mateusz Bysiek <[email protected]>
- Mark Gius
- Mark Byrne <[email protected]>
- Leandro T. C. Melo <[email protected]>
- Konrad Weihmann <[email protected]>
- Kian Meng, Ang <[email protected]>
- Jörg Thalheim <[email protected]>
- Jonathan Striebel <[email protected]>
- John Belmonte <[email protected]>
- Jeff Widman <[email protected]>
- Jeff Quast <[email protected]>
- Jarrad Hope <[email protected]>
- Jared Garst <[email protected]>
- Jakub Wilk <[email protected]>
- Iva Miholic <[email protected]>
- Ionel Maries Cristian <[email protected]>
- Hugo van Kemenade <[email protected]>
- HoverHell <[email protected]>
- HQupgradeHQ <[email protected]>
- Grygorii Iermolenko <[email protected]>
- Gregory P. Smith <[email protected]>
- Giuseppe Scrivano <[email protected]>
- Frédéric Chapoton <[email protected]>
- Francis Charette Migneault <[email protected]>
- Felix Mölder <[email protected]>
- Federico Bond <[email protected]>
- DudeNr33 <[email protected]>
- Dmitry Shachnev <[email protected]>
- Denis Laxalde <[email protected]>
- David Poirier <[email protected]>
- Dave Baum <[email protected]>
- Daniel Martin <[email protected]>
- Daniel Colascione <[email protected]>
- Damien Baty <[email protected]>
- Craig Franklin <[email protected]>
- Colin Kennedy <[email protected]>
- Cole Robinson <[email protected]>
- Christoph Reiter <[email protected]>
- Chris Philip <[email protected]>
- BioGeek <[email protected]>
- Bianca Power <[email protected]>
- Benjamin Elven <[email protected]>
- Becker Awqatty <[email protected]>
- BasPH <[email protected]>
- Azeem Bande-Ali <[email protected]>
- Aru Sahni <[email protected]>
- Artsiom Kaval <[email protected]>
- Anubhav <[email protected]>
- Antoine Boellinger <[email protected]>
- Alphadelta14 <[email protected]>
- Alexander Presnyakov <[email protected]>
- Ahmed Azzaoui <[email protected]>
16 changes: 1 addition & 15 deletions astroid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
# Copyright (c) 2006-2013, 2015 LOGILAB S.A. (Paris, FRANCE) <[email protected]>
# Copyright (c) 2014 Google, Inc.
# Copyright (c) 2014 Eevee (Alex Munroe) <[email protected]>
# Copyright (c) 2015-2016, 2018, 2020 Claudiu Popa <[email protected]>
# Copyright (c) 2015-2016 Ceridwen <[email protected]>
# Copyright (c) 2016 Derek Gustafson <[email protected]>
# Copyright (c) 2016 Moises Lopez <[email protected]>
# Copyright (c) 2018 Bryce Guinta <[email protected]>
# Copyright (c) 2019 Nick Drozd <[email protected]>
# Copyright (c) 2020-2021 hippo91 <[email protected]>
# Copyright (c) 2021-2022 Marc Mueller <[email protected]>
# Copyright (c) 2021 Pierre Sassoulas <[email protected]>
# Copyright (c) 2021 Daniël van Noord <[email protected]>
# Copyright (c) 2022 tristanlatr <[email protected]>

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

"""Python Abstract Syntax Tree New Generation
Expand Down
25 changes: 1 addition & 24 deletions astroid/__pkginfo__.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
# Copyright (c) 2006-2014 LOGILAB S.A. (Paris, FRANCE) <[email protected]>
# Copyright (c) 2014-2020 Claudiu Popa <[email protected]>
# Copyright (c) 2014 Google, Inc.
# Copyright (c) 2015-2017 Ceridwen <[email protected]>
# Copyright (c) 2015 Florian Bruhin <[email protected]>
# Copyright (c) 2015 Radosław Ganczarek <[email protected]>
# Copyright (c) 2016 Moises Lopez <[email protected]>
# Copyright (c) 2017 Hugo <[email protected]>
# Copyright (c) 2017 Łukasz Rogalski <[email protected]>
# Copyright (c) 2017 Calen Pennington <[email protected]>
# Copyright (c) 2018 Ville Skyttä <[email protected]>
# Copyright (c) 2018 Ashley Whetter <[email protected]>
# Copyright (c) 2018 Bryce Guinta <[email protected]>
# Copyright (c) 2019 Uilian Ries <[email protected]>
# Copyright (c) 2019 Thomas Hisch <[email protected]>
# Copyright (c) 2020-2021 hippo91 <[email protected]>
# Copyright (c) 2020 David Gilman <[email protected]>
# Copyright (c) 2020 Konrad Weihmann <[email protected]>
# Copyright (c) 2020 Felix Mölder <[email protected]>
# Copyright (c) 2020 Michael <[email protected]>
# Copyright (c) 2021-2022 Pierre Sassoulas <[email protected]>
# Copyright (c) 2021 Marc Mueller <[email protected]>
# Copyright (c) 2022 Alexander Shadchin <[email protected]>

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

__version__ = "2.10.1-dev0"
version = __version__
4 changes: 4 additions & 0 deletions astroid/_ast.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt

import ast
import sys
import types
Expand Down
15 changes: 2 additions & 13 deletions astroid/arguments.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
# Copyright (c) 2015-2016, 2018-2020 Claudiu Popa <[email protected]>
# Copyright (c) 2015-2016 Ceridwen <[email protected]>
# Copyright (c) 2018 Bryce Guinta <[email protected]>
# Copyright (c) 2018 Nick Drozd <[email protected]>
# Copyright (c) 2018 Anthony Sottile <[email protected]>
# Copyright (c) 2020 hippo91 <[email protected]>
# Copyright (c) 2021 Pierre Sassoulas <[email protected]>
# Copyright (c) 2021 Tushar Sadhwani <[email protected]>
# Copyright (c) 2021 David Liu <[email protected]>
# Copyright (c) 2021 Marc Mueller <[email protected]>
# Copyright (c) 2022 Daniël van Noord <[email protected]>
# Copyright (c) 2022 Alexander Shadchin <[email protected]>

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

from typing import Optional, Set

from astroid import nodes
Expand Down
2 changes: 1 addition & 1 deletion astroid/astroid_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE

# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt

from astroid.manager import AstroidManager

Expand Down
26 changes: 1 addition & 25 deletions astroid/bases.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
# Copyright (c) 2009-2011, 2013-2014 LOGILAB S.A. (Paris, FRANCE) <[email protected]>
# Copyright (c) 2012 FELD Boris <[email protected]>
# Copyright (c) 2014-2020 Claudiu Popa <[email protected]>
# Copyright (c) 2014 Google, Inc.
# Copyright (c) 2014 Eevee (Alex Munroe) <[email protected]>
# Copyright (c) 2015-2016 Ceridwen <[email protected]>
# Copyright (c) 2015 Florian Bruhin <[email protected]>
# Copyright (c) 2016-2017 Derek Gustafson <[email protected]>
# Copyright (c) 2017 Calen Pennington <[email protected]>
# Copyright (c) 2018-2019 Nick Drozd <[email protected]>
# Copyright (c) 2018-2019 hippo91 <[email protected]>
# Copyright (c) 2018 Ville Skyttä <[email protected]>
# Copyright (c) 2018 Bryce Guinta <[email protected]>
# Copyright (c) 2018 Daniel Colascione <[email protected]>
# Copyright (c) 2019 Hugo van Kemenade <[email protected]>
# Copyright (c) 2021 Pierre Sassoulas <[email protected]>
# Copyright (c) 2021 Tushar Sadhwani <[email protected]>
# Copyright (c) 2021 pre-commit-ci[bot] <[email protected]>
# Copyright (c) 2021 Daniël van Noord <[email protected]>
# Copyright (c) 2021 David Liu <[email protected]>
# Copyright (c) 2021 doranid <[email protected]>
# Copyright (c) 2021 Marc Mueller <[email protected]>
# Copyright (c) 2021 Andrew Haigh <[email protected]>
# Copyright (c) 2022 Alexander Shadchin <[email protected]>

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

"""This module contains base classes and functions for the nodes and some
inference utils.
Expand Down
4 changes: 4 additions & 0 deletions astroid/brain/brain_argparse.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt

from astroid import arguments, inference_tip, nodes
from astroid.exceptions import UseInferenceDefault
from astroid.manager import AstroidManager
Expand Down
2 changes: 2 additions & 0 deletions astroid/brain/brain_attrs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt

"""
Astroid hook for the attrs library
Expand Down
1 change: 1 addition & 0 deletions astroid/brain/brain_boto3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/main/LICENSE
# Copyright (c) https://github.com/PyCQA/astroid/blob/main/CONTRIBUTORS.txt

"""Astroid hooks for understanding boto3.ServiceRequest()"""
from astroid import extract_node
Expand Down
Loading

0 comments on commit 1622459

Please sign in to comment.