Skip to content

Commit

Permalink
Rename copying to license and upgrade the setup.cfg (#4338)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas authored Apr 11, 2021
1 parent 5949e48 commit af52033
Show file tree
Hide file tree
Showing 164 changed files with 165 additions and 167 deletions.
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ repos:
exclude: "tests/functional/t/trailing_whitespaces.py"
- id: end-of-file-fixer
exclude: "tests/functional/m/missing/missing_final_newline.py|tests/functional/t/trailing_newlines.py"
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.17.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
Expand Down
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Release date: Undefined
only contain ``__version__`` (also accessible with ``pylint.__version__``), other meta-information are still
accessible with ``import importlib;metadata.metadata('pylint')``.

* COPYING has been renamed to LICENSE for standardization.

* Fix false-positive ``used-before-assignment`` in function returns.

Closes #4301
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/exts/pylint_extensions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Script used to generate the extensions file before building the actual documentation."""

Expand Down
2 changes: 1 addition & 1 deletion doc/exts/pylint_features.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Script used to generate the features file before building the actual documentation."""

Expand Down
2 changes: 1 addition & 1 deletion pylint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Copyright (c) 2021 Marc Mueller <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion pylint/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import pylint

Expand Down
2 changes: 1 addition & 1 deletion pylint/__pkginfo__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

from typing import Optional

Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Copyright (c) 2021 Matus Valo <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""utilities methods and classes for checkers
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/async.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Copyright (c) 2020 hippo91 <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Checker for anything related to the async protocol (PEP 492)."""

Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
# Copyright (c) 2021 Or Bahari <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""basic checker for Python code"""
import builtins
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/base_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Copyright (c) 2020 hippo91 <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE
import functools
from inspect import cleandoc
from typing import Any
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
# Copyright (c) 2021 Marc Mueller <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""classes checker for Python code
"""
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/deprecated.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Checker mixin for deprecated functionality."""
from itertools import chain
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/design_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Copyright (c) 2021 Marc Mueller <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""check for signs of poor design"""

Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Copyright (c) 2020 Anthony Sottile <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Checks for various exception related errors."""
import builtins
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# Copyright (c) 2020 Raphael Gaschignard <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Python code format's checker.
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# Copyright (c) 2021 Matus Valo <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""imports checkers for Python code"""

Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Copyright (c) 2019 Svet <[email protected]>
# Copyright (c) 2020 Anthony Sottile <[email protected]>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""checker for use of Python logging
"""
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/mapreduce_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) 2021 Pierre Sassoulas <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE
import abc


Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Copyright (c) 2021 Konstantina Saketou <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE


"""Check source code is ascii only or has an encoding declaration (PEP 263)"""
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/newstyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Copyright (c) 2020 hippo91 <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""check for new / old style related problems
"""
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/python3.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# Copyright (c) 2021 Tiago Honorato <[email protected]>
# Copyright (c) 2021 tiagohonorato <[email protected]>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Check Python 2 code for Python 2/3 source-compatible issues."""
import itertools
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/raw_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Copyright (c) 2020 谭九鼎 <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import tokenize
from typing import Any
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/refactoring/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# Copyright (c) 2020 Anthony Sottile <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Looks for code which can be refactored."""

Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/refactoring/len_checker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE
from typing import List

import astroid
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/refactoring/not_checker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import builtins

Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/refactoring/recommendation_checker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import astroid

Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/refactoring/refactoring_checker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import collections
import copy
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/similar.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Copyright (c) 2020 Shiv Venkatasubrahmanyam <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

# pylint: disable=redefined-builtin
"""a similarities / code duplication command line tool and pylint checker
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Copyright (c) 2021 Eli Fine <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Checker for spelling errors in comments and docstrings.
"""
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# Copyright (c) 2021 Matus Valo <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Checkers for various standard library functions."""

Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Checker for string formatting operations.
"""
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/typecheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# Copyright (c) 2021 Ikraduya Edian <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""try to find more bugs in the code using astroid inference capabilities
"""
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# Copyright (c) 2021 Marc Mueller <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""some functions that may be useful for various checkers
"""
Expand Down
2 changes: 1 addition & 1 deletion pylint/checkers/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
# Copyright (c) 2021 Alexander Kapshuna <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""variables checkers for Python code
"""
Expand Down
2 changes: 1 addition & 1 deletion pylint/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# Copyright (c) 2019 Hugo van Kemenade <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import os
import pickle
Expand Down
2 changes: 1 addition & 1 deletion pylint/config/configuration_mixin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

from pylint.config.option_manager_mixin import OptionsManagerMixIn
from pylint.config.options_provider_mixin import OptionsProviderMixIn
Expand Down
2 changes: 1 addition & 1 deletion pylint/config/find_default_config_files.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import configparser
import os
Expand Down
2 changes: 1 addition & 1 deletion pylint/config/man_help_formatter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import optparse
import sys
Expand Down
2 changes: 1 addition & 1 deletion pylint/config/option.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import copy
import optparse
Expand Down
2 changes: 1 addition & 1 deletion pylint/config/option_manager_mixin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE


import collections
Expand Down
2 changes: 1 addition & 1 deletion pylint/config/option_parser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import optparse

Expand Down
2 changes: 1 addition & 1 deletion pylint/config/options_provider_mixin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE


import optparse
Expand Down
2 changes: 1 addition & 1 deletion pylint/constants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

import sys

Expand Down
2 changes: 1 addition & 1 deletion pylint/epylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# Copyright (c) 2020 Anthony Sottile <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Emacs and Flymake compatible Pylint.
Expand Down
2 changes: 1 addition & 1 deletion pylint/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Copyright (c) 2020 Anthony Sottile <[email protected]>
# Copyright (c) 2021 Pierre Sassoulas <[email protected]>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Exception classes raised by various operations within pylint."""

Expand Down
2 changes: 1 addition & 1 deletion pylint/extensions/_check_docs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Copyright (c) 2021 Pierre Sassoulas <[email protected]>

# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE

"""Utility methods for docstring checking."""

Expand Down
Loading

0 comments on commit af52033

Please sign in to comment.