Commit Graph

13 Commits

Author SHA1 Message Date
Daniël van Noord
d58a7c019d
Fix typo in pylintrc for useless-suppression (#5303)
* Fix typo in pylintrc for useless-suppression

* Fix CI for information messages

* Remove useless disables

* Update CI and docs for 3.8+

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-11-23 20:10:29 +01:00
Daniël van Noord
6ad9d6ce38 Refactor test reporter 2021-10-06 21:51:34 +02:00
Daniël van Noord
6d07d6f1a5 Add typing for `json_reporter` and sub-classes 2021-09-16 22:38:28 +02:00
Daniël van Noord
0d246e55a3
Add typing to `filepath` (#4980)
* Change tests for ``filepath`` changes
* Add pylint/typing.py and FileItem NamedTuple
* Use NamedTuple more efficiently
* Fix errors and tests after adding warning
* Add deprecation for future API change in Checker

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-09-16 16:58:37 +02:00
Daniël van Noord
baaa81a299
Refactor various typing related issues (#4940)
* Add type annotations to ``visit`` & ``leave`` calls
This adds typing to most calls that visit nodes. All other changes are
due to mypy errors resulting from introduction of typing.

* Fix outstanding mypy issues
This removes some of the `type: ignore` comments in favour of
solving the mypy issues these comments were surpressing.

* Fix remaining references to node_classes
Except for two references to node_classes in the changelog this should be the last of them

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-09-03 13:47:23 +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
Pierre Sassoulas
fa89da07df
[test utils] No output with an expected output now fail properly (#4675) 2021-07-06 07:33:06 +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
8807743195 Add handle_message in BaseReporter and add typing 2021-06-15 09:29:56 +02:00
Marc Mueller
a4fac223df Changes after black update 2021-04-26 14:39:28 +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
5bed07eba9 Move from % string formatting syntax to f-string or .format() 2021-02-21 15:36:16 +01:00
Pierre Sassoulas
ebd35f03c7 Fix PytestCollectionWarning: cannot collect test class TestReporter 2020-11-28 16:09:53 +01:00