Commit Graph

106 Commits

Author SHA1 Message Date
Jacob Walls
31390de569 Remove deprecated future argument 2023-07-08 09:46:48 -04:00
Pierre Sassoulas
918f4624d7 Merge the empty-string extensions to 'implicit_booleaness_checker' 2023-05-02 20:01:39 +02:00
Alex Mor
e3f68d5e7e
Move dockerfile to the example directory bump to alpine3.17 (#8353)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2023-04-01 10:39:07 +02:00
Samuel FORESTIER
b312b9a664
Add Python 3.8+ asyncSetUp to "defining-attr-methods" list (#8403) 2023-03-11 22:55:17 +01:00
Pierre Sassoulas
ee2e63519b
Bump pylint to 2.17.0, update changelog (#8395) 2023-03-07 22:57:04 +01:00
Ollie
5337e6280e
Changing flake8 to have max-line-length of 115 (#8362)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2023-03-02 19:49:28 +01:00
Pierre Sassoulas
81ed650d46
[typing] Use __future__ annotations where possible (#8264) 2023-02-12 12:39:21 +01:00
Alexey Pelykh
71b6325c84
Support Implicit Namespace Packages (PEP 420) (#8153)
Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
2023-02-09 20:16:02 +01:00
jessebrennan
40f4247100
Don't use 'self.config' in examples since it's deprecated (#8227) 2023-02-07 22:32:24 +01:00
Pierre Sassoulas
dcb0198d16 Bump pylint to 2.16.0, update changelog 2023-02-01 11:50:49 +01:00
Pierre Sassoulas
361a1f7533 Bump pylint to 2.16.0-b0, update changelog 2023-01-13 11:26:46 +01:00
Pierre Sassoulas
dbb12524d7
[pre-commit] Upgrade to black 23.1a1 with 2023's formatting (#7965) 2022-12-27 00:04:56 +01:00
Jacob Walls
f860e3fe1c
Add flag --clear-cache-post-run to support server-like usage (#7802)
Use this flag if you expect the linted files to be altered between runs,
for instance, if using pylint in a server-like mode. The flag clear's
astroid's in-memory caches.
2022-12-05 22:52:17 +01:00
Cubicpath
44d51b022a
Fix valid-metaclass-classmethod-first-arg default value (#7791)
* Change default value to "mcs"
* Fix functional tests to use "mcs" for first MetaClass classmethod arg
2022-11-19 14:52:54 +01:00
Jakub Kuczys
ac65bdc074
Use qualified name when checking for overgeneral exceptions (#7497)
* Update tests

* Use qualified name when checking for overgeneral exceptions

* WIP: Add deprecation warning

* Add changelog fragment

* Use qualified name in test case

* spell check fix

* Update changelog fragment with suggested fixes

Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>

* Move OVERGENERAL_EXCEPTIONS directly to the default value in dict

* Mark as TODO for pylint 3.0

* Properly warn on each occurrence of name without dots

* Update the warning per the review

* Rephrase the warning to mention pylint 3.0

* Remove unnecessary nesting of the if condition

* Quote the exception name in deprecation warning

* Use config value for overgeneral exceptions in broad-exception-raised

* Infer qualified name of the exception in broad-exception-raised

* e.g. -> maybe?

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>

* Suppress missing class docstrings

* Add few more tests for broad-exception-raised

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>

* Fix unexpected missing-raise-from

* Revert "Fix unexpected missing-raise-from"

This reverts commit d796e72035b7f7578b9e6bb1e45a30935e80b009.

* Revert "Add few more tests for broad-exception-raised"

This reverts commit e5a193ee136f8566d43450fbb9fbf28cc717d307.

* Change confidence of broad-exception-raised from HIGH to INFERENCE

* Only trigger broad-exception-raised for raise with new exc instance

* Update overgeneral-exceptions definition in example pylintrc file

* Update pylint/checkers/exceptions.py

Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-11-13 11:41:38 +00:00
Marc Mueller
9cc5674690 Sort examples/pylintrc 2022-10-21 13:31:07 +02:00
Pierre Sassoulas
9e17a6dbf0
Bump pylint to 2.15.0-a0, update changelog (#7196)
[doc] Add summary for the release notes
2022-07-30 15:15:44 +02:00
Pierre Sassoulas
4117389b99
[doc] Remove hard-coded default in 'ignored-argument-names' description (#7239) 2022-07-30 10:53:53 +02:00
Pierre Sassoulas
bfedbd36e7 Merge 'origin/maintenance/2.14.x' into main following 2.14.5 release 2022-07-17 21:50:58 +02:00
Pierre Sassoulas
566ffca72a Bump pylint to 2.14.5, update changelog 2022-07-17 21:44:17 +02:00
Ville Skyttä
1c5777f37f
doc(fail-under): rephrase description (#7102)
To exceed a threshold here sonds to me as if the score would have to be
_above_ the threshold, which is the opposite of what actually happens.

Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-07-05 19:37:28 +02:00
Pierre Sassoulas
018176d48b Merge branch 'maintenance/2.14.x' into main following 2.14.4 release 2022-06-29 16:14:47 +02:00
Pierre Sassoulas
bf29a5520e Bump pylint to 2.14.4, update changelog 2022-06-29 15:44:58 +02:00
Pierre Sassoulas
6d73437c41 Merge branch 'maintenance/2.14.x' into main 2022-06-18 10:34:12 +02:00
Pierre Sassoulas
680edebc68 Bump pylint to 2.14.3, update changelog 2022-06-18 10:31:21 +02:00
Matus Valo
e666506158
Add support of sharing message in multiple checkers. Fix DeprecatedChecker example (#6693)
* Move message definitions from DeprecatedMixin

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

for more information, see https://pre-commit.ci

* Added typing and fixed unittests

* Make DEPRECATED_MSGS and DEPRECATED_IMPORT_MSG class variables to make pylint happy

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

for more information, see https://pre-commit.ci

* Introduce shared messages

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

for more information, see https://pre-commit.ci

* Change Message codes in DeprecatedMixin to W49XX

* Make mypy happy

* Make pylint happy

* Add support for building documentation for shared messages

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

for more information, see https://pre-commit.ci

* Make isort happy

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

for more information, see https://pre-commit.ci

* Circuvent isort

* Move shared to extra message options and fix tests

* Update deprecation_checker example

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

for more information, see https://pre-commit.ci

* Update doc/exts/pylint_messages.py

Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>

* Update doc/exts/pylint_messages.py

Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>

* Make messages static class attributes

* Keep MessageDefinition backward compatible

* Apply suggestions from code review

Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
2022-06-16 11:32:10 +02:00
Pierre Sassoulas
e910a0778f Bump pylint to 2.14.0, update changelog 2022-06-01 16:33:17 +02:00
Pierre Sassoulas
2dfff17ec7
Bump pylint to 2.14.0-b0, update changelog (#6527)
Update contributors and create release summary
2022-05-10 12:32:38 +02:00
Daniël van Noord
7c915217b0
Use main instead of master as main checker name (#6569)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-05-10 11:38:53 +02:00
Pierre Sassoulas
133e2e5939
Upgrade configuration example and add toml example (#6529)
* Add a pyproject.toml example and an automated upgrade for release

* Upgrade the pylintrc example following migration to argparse
2022-05-10 11:18:32 +02:00
Pierre Sassoulas
3bfe47e2c3 [spelling] Remove remaining typoes detected by the spelling checker 2022-04-26 09:12:32 +02:00
Pierre Sassoulas
9c0c457f77 [spelling] Fix all ie / eg => i.e. / e.g. 2022-04-26 09:12:32 +02:00
Daniël van Noord
5e76bff35d Remove `IAstroidChecker from __implements__` 2022-04-19 23:26:39 +02:00
Daniël van Noord
6b25ff0ad3 Subclass `BaseRawFileChecker and BaseTokenChecker` 2022-04-19 23:06:09 +02:00
Daniël van Noord
2e0a4e716f
Add some manual typing changes (#6325)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-04-14 22:51:14 +02:00
Daniël van Noord
aea58d6e25 Deprecate `ignore-mixin-members + add ignored-checks-for-mixins` 2022-04-04 20:21:46 +02:00
Daniël van Noord
e01fa86c00
Remove the concept of checker priority (#6034)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-04-01 20:19:36 +02: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
f3ece3f3a9
Add `future=True to all NodeNG.frame` calls (#5621)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-01-10 23:06:30 +01:00
Daniël van Noord
fffde57ac0 Format docstrings with `pydocstringformatter` 2022-01-02 23:52:24 +01:00
Jacob Walls
f56db7d764
Fix #2399: Avoid negative scores by default (#5595) 2021-12-28 16:30:41 +01:00
Pierre Sassoulas
7d25842515
Add typing and uniformize the checker registering in Pylinter (#5558)
Remove verbose docstring in code, keep them in example and doc

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-12-27 21:30:34 +01:00
Pierre Sassoulas
0a042a8a42 Fix some typoes before adding typing for checker registering 2021-12-20 22:52:51 +01:00
Kian Meng, Ang
566a377154
Fix typos over the whole codebase (#5540)
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
2021-12-17 17:23:17 +01:00
Jacob Walls
af8cc2e750
Produce a score of 0 for fatal errors and add fatal to score evaluation (#5521)
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
2021-12-14 20:38:35 +01:00
Daniël van Noord
b533e287b2
Update description of `ignore-paths` (#5415) 2021-11-28 22:35:11 +01:00
Daniël van Noord
e726eb40ea Type `process_module` and update argument names 2021-09-13 13:32:34 +02:00
Pierre Sassoulas
5f96098d65 Remove the python3 porting mode from the codebase
It's possible to use the python3 porting checker from
an older pylint version. But it's not evolving anymore
and was costing resource to maintain.
2021-09-01 08:27:04 +02:00
Marc Mueller
6e2dbbf463
Use alias for astroid.nodes 01 (#4855)
* Use from astroid import nodes
* Resolve name conflicts
2021-08-17 22:19:04 +02:00
DudeNr33
5ed8becef3 Issue #4541: add `ignore-paths` option to example pylintrc file. 2021-06-29 18:29:43 +02:00