Commit Graph

25 Commits

Author SHA1 Message Date
Daniël van Noord
03cfbf3df1
Use `namespace in PyLinter` and the functional config tests (#6271)
* Use callback actions in ``PyLinter``
* Turn off ``optparse`` command line parsing
* No longer emit ``bad-configuration-section``

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-04-12 12:56:42 +02:00
Daniël van Noord
97cc6fc542 Create `_CallbackActions` for all option callbacks 2022-04-04 10:27:04 +02:00
Daniël van Noord
efca390ba0 Fix `confidence` argument type 2022-04-02 17:34:05 +02:00
Pierre Sassoulas
ec4a3f7f1e Add a pre-commit hook to check the copyright notice
Fix the existing file so they have a notice.
No header for setup.py or examples or doc
2022-03-24 13:06:15 +01:00
Pierre Sassoulas
9e0baf370a Simplify hard to maintain copyright notice
git is the source of truth for the copyright, copyrite (the tool)
was taking exponentially longer with each release, and it's
polluting the code with sometime as much as 50 lines of names.
2022-03-24 13:06:15 +01:00
Daniël van Noord
595ec422d6
Update `pydocstringformatter` to 0.4.0 (#5787) 2022-02-10 19:30:15 +01:00
Daniël van Noord
6fa8218aa6 Fix `_regexp_paths_csv_validator` for already validated values 2021-11-29 22:39:23 +01:00
Pierre Sassoulas
e4a1935d88
Activate and fix existing use-set-for-membership checks (#5379)
* Activate and fix existing use-set-for-membership checks
2021-11-25 16:09:42 +01:00
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
b91cc8dbb4
Add error codes to all `type: ignore` (#5329) 2021-11-17 14:13:34 +01:00
Tushar Sadhwani
7976857b94
Make y/n validator case insensitive (#5294)
* Make y/n validator case insensitive
* Add changelog entry
2021-11-12 22:21:09 +01:00
Daniël van Noord
bfc8d32273
Normalize input of `ignore-paths` for all path types (#5201)
Closes #5194

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-10-24 12:48:19 +02:00
Daniël van Noord
8c74530e67 Fix empty regex options not converting to regex 2021-09-29 20:29:37 +02:00
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
Marc Mueller
2c0e27330f
Small py-version improvements (#5069)
* Add py-version requirement to checker docs

* Improve default value

* Improve option parser error message

* Fix py-version help text
2021-09-25 13:28:08 +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
f2cd986da0
Allow true / false in pylintrc (#4844) 2021-08-14 13:44:47 +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
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
Marc Mueller
fce898e283
Add new extension TypingChecker (#4382) 2021-04-24 20:43:29 +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
Pieter Engelbrecht
7802a8852d Make fail under a float 2020-07-12 17:33:24 +02:00
Ram Rachum
7bf11769db Fix exception causes all over the codebase 2020-06-14 08:28:01 +02:00
Pierre Sassoulas
206018aa91 Creating a file for option and helper functions 2020-05-03 14:40:55 +02:00