Commit Graph

8 Commits

Author SHA1 Message Date
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
Pierre Sassoulas
ea448b8905 Bump pylint to 2.10.0, update changelog 2021-08-20 22:58:03 +02:00
Marc Mueller
4225d2e213 Revert "Extended consider-using-tuple check to cover 'in' comparisons (#4768)"
This reverts commit ca3bc53fd8.
2021-08-12 20:12:12 +02:00
Marc Mueller
ca3bc53fd8
Extended consider-using-tuple check to cover 'in' comparisons (#4768) 2021-07-29 16:38:22 +02:00
Daniël van Noord
a8b7dd7bff
Add unspecified-encoding checker #3826 (#4753)
* Add unspecified-encoding checker #3826
This adds an unspecified-encoding checker that adds a warning
whenever open() is called without an explicit encoding argument.
This closes #3826

* Update tests to conform to unspecified-encoding
With addition of the unspecified-encoding checker calls of open()
need an encoding argument.
Where necessary this argument has been added, or the message has been
disabled.
This also includes small linting changes to a small number
of tests. Their test-data has been updated to reflect new line numbers.

* Update scripts to conform to unspecified-encoding
With addition of the unspecified-encoding checker calls of open()
need an encoding argument.
Where necessary this argument has been added.

* Update pylint to conform to unspecified-encoding
With addition of the unspecified-encoding checker calls of open()
need an encoding argument.
Where necessary this argument has been added.

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-28 20:18:44 +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
Pierre Sassoulas
58a4af34b5 Upgrade the release script using what was done in astroid 2021-06-29 21:13:47 +02:00
Pierre Sassoulas
54a31ee30b Add tbump script for bumbing version 2021-06-17 13:24:47 +02:00