summaryrefslogtreecommitdiff
path: root/pylint/constants.py
Commit message (Collapse)AuthorAgeFilesLines
* Add `bad-dunder-name` extension checker (#7642)Dani Alcala2022-10-311-0/+130
| | | | | With a 'good-dunder-name' option Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix `undefined-loop-variable` with `NoReturn` and `Never` (#7476)Daniël van Noord2022-09-191-0/+13
| | | | Co-authored-by: detachhead <detachhead@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [deleted messages] Refactor the constant to be able to give a reasonPierre Sassoulas2022-06-041-113/+0
|
* Create constant for default ignore list (#6615)Andreas Finkler2022-05-151-0/+2
|
* Use main instead of master as main checker name (#6569)Daniël van Noord2022-05-101-2/+2
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move ``PYLINTHOME`` to constants and test it (#6509)Daniël van Noord2022-05-051-0/+57
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Do not report useless-suppression on duplicate-codeDaniël van Noord2022-05-051-0/+1
|
* Disable fixme for internal uses before we make it optional in #3512 (#6482)Pierre Sassoulas2022-05-011-1/+0
|
* Remove ``assign-to-new-keyword`` (#6421)Daniël van Noord2022-04-211-0/+2
|
* Remove the 'no-init' message tat was not emitted anywayPierre Sassoulas2022-04-181-0/+2
| | | | | | See https://github.com/PyCQA/pylint/issues/2409#issuecomment-1100952171 Closes #2409
* Add classifications to TODOs across codebaseDaniël van Noord2022-04-141-1/+1
|
* Use ``python-typing-update`` on ``pylint`` directoryDaniël van Noord2022-04-141-5/+7
|
* Remove removed messages from the tests (#6268)Daniël van Noord2022-04-121-0/+6
|
* Require python ``3.7.2+`` (#5921)Daniël van Noord2022-04-111-1/+0
| | | | * Remove env from tox * Add changelog
* [refactor] Cleanup of the USER_HOME variablePierre Sassoulas2022-03-291-0/+2
| | | | We keep it in the pylint.config API to not break downstreazm libraries.
* Don't emit broken typing errors inside TYPE_CHECKING blocks (#5984)Marc Mueller2022-03-261-0/+3
|
* Create a ``TypeVar`` style for ``invalid-name`` (#5894)Daniël van Noord2022-03-241-0/+1
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-1/+2
| | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc
* Simplify hard to maintain copyright noticePierre Sassoulas2022-03-241-0/+1
| | | | | | 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.
* Prevent `useless-suppression` on disables for stdlib deprecation checker (#5876)Jacob Walls2022-03-111-0/+17
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Restore the useful part of the python3 checker (#5843)Pierre Sassoulas2022-03-081-4/+1
| | | | | | | * Reinstate checks from the python3 checker that are still useful for py3 Closes #5025 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add a test to check that no old msgid or symbol are used (#5839)Pierre Sassoulas2022-02-261-1/+105
| | | | | | | | | | * Add deleted msgid and symbol from the Python 3K+ checker and other deleted checks. See https://github.com/PyCQA/pylint/pull/4942 Closes #5729 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix remaining typing issues for ``PyLinter`` and related functions (#5663)Daniël van Noord2022-02-081-2/+4
|
* Improve non ascii checker (#5643)Kound2022-01-101-0/+1
| | | | | | | | | | * split ``non-ascii-name`` into 3 different msgs - non-ascii-identifier (replaces non-ascii-name) - non-ascii-file-name (a warning) - non-ascii-module-import (only considering the namespace the import is imported in) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move ``HUMAN_READABLE_TYPES`` to ``constants`` (#5642)Daniël van Noord2022-01-061-0/+14
| | | | | Ref #5311 Co-authored-by: Carli* Freudenberg <carli.freudenberg@energymeteo.de>
* Primer tests "à la mypy" (#5173)Pierre Sassoulas2021-11-241-0/+1
| | | | | | | | | | | | * Add changelog and warning about unstable API in testutil * Add primer tests, (running pylint on external libs during tests) In order to anticipate crash/fatal messages, false positives are harder to anticipate. Follow-up will be #5359 and later on #5364 Add '__tracebackhide__ = True' so the traceback is manageable Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Create a OLD_DEFAULT_PYLINT_HOME constantsPierre Sassoulas2021-10-261-0/+3
|
* Create a DEFAULT_PYLINT_HOME constant and upgrade help textPierre Sassoulas2021-10-261-0/+3
|
* Use py-version for alternative union syntax check (#5160)Marc Mueller2021-10-151-1/+0
|
* ``astroid.const.BUILTINS`` use removed for clarity and so astroid can also ↵Pierre Sassoulas2021-08-191-2/+0
| | | | | | | | | | | | | removes it later (#4868) * Simplify the way builtins is used (remove astroid dependencies) * Replace the constant BUILTINS by the string 'builtins' This make for clearer and also slightly faster code (means time seems to decrease by 0.68% with this change alone (astroid/pylint) in the pylint tests benchmarks). Done because we were using an import from astroid from astroid.bases for one of those, which is kinda messy.
* Create a constant for BUILTINSPierre Sassoulas2021-07-061-1/+2
|
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Update link to astroid bump_changelog
* VariableChecker now accounts for attribute lookups in type comments (#4604)Sergei Lebedev2021-06-271-0/+2
| | | | | | | | | | | * VariableChecker now accounts for attribute lookups in type comments Prior to this commit VariableChecker did not recurse into attribute lookups in type comments. This lead to false positive unused-import messages in e.g. import collections d = ... # type: collections.OrderedDict Fixes #4603
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Move informations that never change in the setup.pyPierre Sassoulas2021-04-051-2/+2
|
* Import astroid with import x or from x import y but not bothPierre Sassoulas2021-03-281-3/+3
| | | | Remove unused imports for astroid
* Improve handling of assignment expressionsMarc Mueller2021-03-261-0/+1
|
* Migrate from % syntax or bad format() syntax to fstringPierre Sassoulas2021-02-211-5/+3
| | | | We can do that in python 3.6
* Move from % string formatting syntax to f-string or .format()Pierre Sassoulas2021-02-211-1/+1
|
* Create a constant for version check and refactor existing onePierre Sassoulas2021-01-241-0/+4
|
* Remove unused regular expressions import.wtracy2020-10-031-1/+0
|
* OPTION_RGX is redefined in pragma_parser.py, and is not used anywhere else. ↵wtracy2020-10-021-5/+0
| | | | Removing this declaration, as it serves no purpose.
* The full version is a constant we can just import itPierre Sassoulas2020-05-101-0/+12
|
* pyupgrade: automated removal of python2 constructsAnthony Sottile2020-03-241-2/+0
| | | | | | | | | | | | | using configuration: ```yaml - repo: https://github.com/asottile/pyupgrade rev: v2.1.0 hooks: - id: pyupgrade args: [--py3-plus, --keep-percent-format] exclude: ^tests/(extensions/data/|functional/|input/|regrtest_data/) ```
* Doc - Retrocompatibility with the main checker namePierre Sassoulas2019-06-201-1/+4
|
* Refactor - Use a constant for the main checker namePierre Sassoulas2019-06-201-0/+2
| | | | Following review see : https://github.com/PyCQA/pylint/pull/2844#discussion_r281014968
* Refactor - Avoid intra-packages circular dependencies for constantsPierre Sassoulas2019-03-291-0/+38
Some constants were package internal but were used by multiple packages. This created circular dependencies. By creating a file for constants we make sure this does not happen because we won't import everything important in this file and every thing else can depend on it.