Commit Graph

11 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
a602692aa1
[pre-commit.ci] pre-commit autoupdate (#5082)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-09-28 08:06:32 +02:00
Daniël van Noord
c17457f7ef Add typing to most reference of `stream` 2021-09-13 13:32:34 +02:00
Daniël van Noord
66ffcbc4c5
Add `Consider-using-f-string` checker (#4796)
* Add ``consider-using-f-string`` checker
This adds a checker for normal strings which are formatted
with ``.format()`` or '%'.
The message is a convention to nudge users towards using f-strings.
This closes #3592

* Update pylint code to use f-strings
After adding `consider-using-f-strings` the codebase showed numerous
cases of formatting which could be f-strings.
This commit changes most of these to become f-strings, or adds ignores.

* Apply suggestions from code review

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-08-30 07:57:05 +02:00
Marc Mueller
21290866a2
Fix copyright links (#4647)
* Fix link in license header
* Update link to astroid bump_changelog
2021-07-01 12:47:58 +02:00
dependabot[bot]
62c91eb2f0
Bump pyupgrade from 2.16.0 to 2.18.1 (#4496)
* Bump pyupgrade from 2.16.0 to 2.18.1

Bumps [pyupgrade](https://github.com/asottile/pyupgrade) from 2.16.0 to 2.18.1.
- [Release notes](https://github.com/asottile/pyupgrade/releases)
- [Commits](https://github.com/asottile/pyupgrade/compare/v2.16.0...v2.18.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Update pre-commit-config

* Changes after pyupgrade update

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-05-24 13:31:09 +02:00
Matus Valo
8bb83f00b4
Moved stdlib module deprecation from imports checker to stdlib checker (#4454)
* Moved stdlib module deprecation from imports checker to stdlib checker

* Ignore deprecated-module error in pylint/config modules
2021-05-10 09:53:36 +02:00
Pierre Sassoulas
af52033971
Rename copying to license and upgrade the setup.cfg (#4338) 2021-04-11 15:29:34 +02:00
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
3aa504542b Fix all E741 ambiguous variable name 'l' 2021-02-15 21:14:28 +01:00
Pierre Sassoulas
cce4e0578a Create a file for ManPageFormatter 2020-05-03 14:40:55 +02:00