Commit Graph

10 Commits

Author SHA1 Message Date
Pierre Sassoulas
ee910755b9 Migrate from % syntax or bad format() syntax to fstring
We can do that in python 3.6
2021-02-21 15:36:16 +01:00
Pierre Sassoulas
5bed07eba9 Move from % string formatting syntax to f-string or .format() 2021-02-21 15:36:16 +01:00
Pierre Sassoulas
8e5660ccd9 Create a constant for version check and refactor existing one 2021-01-24 10:16:38 +01:00
wtracy
c15d3f0612 Remove unused regular expressions import. 2020-10-03 10:51:17 -07:00
wtracy
07d8504c38 OPTION_RGX is redefined in pragma_parser.py, and is not used anywhere else. Removing this declaration, as it serves no purpose. 2020-10-02 15:51:41 -07:00
Pierre Sassoulas
7831157f47 The full version is a constant we can just import it 2020-05-10 11:02:10 +02:00
Anthony Sottile
a45505143f pyupgrade: automated removal of python2 constructs
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/)
```
2020-03-24 10:27:21 +01:00
Pierre Sassoulas
748bb0b60f Doc - Retrocompatibility with the main checker name 2019-06-20 14:09:59 +02:00
Pierre Sassoulas
8a09f2dda7 Refactor - Use a constant for the main checker name
Following review see : https://github.com/PyCQA/pylint/pull/2844#discussion_r281014968
2019-06-20 14:09:59 +02:00
Pierre Sassoulas
1dbbb35d93 Refactor - Avoid intra-packages circular dependencies for constants
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.
2019-03-29 09:37:05 +01:00