summaryrefslogtreecommitdiff
path: root/pylint/constants.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.