summaryrefslogtreecommitdiff
path: root/pylintrc
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-241-1/+2
| | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests
* Tighten design constraints (#8115)Nick Drozd2023-01-281-24/+5
| | | | | | | | | | | | | * Lower max locals * Lower max statements * Lower max try statements * Lower max branches * Lower max args * Cut design constraints with default values
* Add `--allow-reexport-from-package` option (#8124)Marc Mueller2023-01-281-0/+3
|
* Add `consider-refactoring-into-while-condition` checker (#8021)yushao22023-01-271-0/+1
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* [style] Use default 'dummy-variable-rgx' and 'ignored-argument-names' (#8014)Pierre Sassoulas2023-01-021-8/+0
| | | | Refs #8013 Refs https://github.com/PyCQA/pylint/pull/7697#discussion_r1010869312
* Add flag `--clear-cache-post-run` to support server-like usage (#7802)Jacob Walls2022-12-051-0/+4
| | | | | | 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.
* Enable dict-init-mutate extension (#7844)Nick Drozd2022-11-251-0/+1
|
* Enable broad-try-clause check (#7796)Nick Drozd2022-11-181-0/+4
|
* Use qualified name when checking for overgeneral exceptions (#7497)Jakub Kuczys2022-11-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix typevar-rgx description in pylintrc (#7455)243f6a88 85a308d32022-09-121-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove unsupported option from our own ``pylintrc``Daniël van Noord2022-07-071-3/+0
|
* doc(fail-under): rephrase description (#7102)Ville Skyttä2022-07-051-1/+1
| | | | | | 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>
* Use main instead of master as main checker name (#6569)Daniël van Noord2022-05-101-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove fixme from enable listJacob Walls2022-05-051-1/+0
|
* Activate the ``duplicate-code`` checker (#6121)Pierre Sassoulas2022-05-051-2/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Change config values of ``ignore-imports`` and ``ignore-signatures``Daniël van Noord2022-05-051-2/+2
|
* Disable fixme for internal uses before we make it optional in #3512 (#6482)Pierre Sassoulas2022-05-011-0/+2
|
* Only run spelling checks in CI with manual hookDaniël van Noord2022-04-261-1/+1
|
* [spelling] Add a configuration for the spelling checkerPierre Sassoulas2022-04-261-4/+4
|
* Add ``unrecognized-option`` message (#6330)Daniël van Noord2022-04-151-31/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Bump py-version and add python-typing-update to CI (#6326)Daniël van Noord2022-04-141-1/+1
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Deprecate ``ignore-mixin-members`` + add ``ignored-checks-for-mixins``Daniël van Noord2022-04-041-4/+0
|
* Fix ``confidence`` argument typeDaniël van Noord2022-04-021-1/+1
|
* [refactor] Use for v in *.values() instead of _, v in *.items()Pierre Sassoulas2022-04-021-1/+1
|
* Create an `Argument` class and allow convertion of optdict into them (#5584)Daniël van Noord2022-03-291-1/+1
| | | | | * Use config initialization of ``_ArgumentsManager`` * Allow ``BaseChecker`` to register on a ``_ArgumentsManager`` * Use the ``argparse`` config handler in ``logging.py`` and add tests
* Update configuration of pre-commit hooks and toolsDaniël van Noord2022-03-251-0/+1
|
* Create a ``TypeVar`` style for ``invalid-name`` (#5894)Daniël van Noord2022-03-241-0/+3
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Fix #2399: Avoid negative scores by default (#5595)Jacob Walls2021-12-281-1/+1
|
* Add missing settings to pylintrc (#5556)Daniël van Noord2021-12-211-17/+203
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix typos over the whole codebase (#5540)Kian Meng, Ang2021-12-171-1/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Produce a score of 0 for fatal errors and add fatal to score evaluation (#5521)Jacob Walls2021-12-141-5/+5
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix #4761: Emit `used-before-assignment` where single assignment only made ↵Jacob Walls2021-12-111-1/+1
| | | | | | in except blocks (#5402) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Require Python 3.6.2 (#5068)Marc Mueller2021-11-251-1/+1
| | | | | | | | | | | | | * Bump python_requires to >= 3.6.2 * Import typing names directly * Use typing.NamedTuple for MessageTest * Add default value to MessageStyle * Revert "Add an exception at install for python < 3.6.2 (#5171)" This reverts commit 37e330cadd12800b484ef89cd599dcb06f1ba539. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Activate and fix existing use-set-for-membership checks (#5379)Pierre Sassoulas2021-11-251-0/+1
| | | | * Activate and fix existing use-set-for-membership checks
* Fix typo in pylintrc for useless-suppression (#5303)Daniël van Noord2021-11-231-1/+1
| | | | | | | | | | | * 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>
* Move ``misplaced-comparison-constant`` to optional extension (#5298)Daniël van Noord2021-11-141-0/+1
| | | | | | | * Move ``misplaced-comparison-constant`` to optional extension * Update functional tests to increase coverage Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add configuration option ``exclude-too-few-public-methods`` (#5191)Mike Fiedler2021-10-261-0/+3
| | | | | | | | | Allow excluding classes based on their ancestors from the ``too-few-public-methods`` checker. Closes #3370 Signed-off-by: Mike Fiedler <miketheman@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Enable for_any_all check (#5206)Nick Drozd2021-10-251-0/+1
| | | | | | | * Enable for_any_all check, reword a few docstrings, shorten some loop variable names, and add typing on modified functions. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add ``mixin-class-rgx`` option (#5203)Daniël van Noord2021-10-251-2/+5
| | | | | Co-authored-by: Alpha <alpha@pokesplash.net> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix ``missing-function-docstring`` not checking ``__init__`` (#5147)Daniël van Noord2021-10-171-1/+1
| | | | | | * Fix ``missing-function-docstring`` not checking ``__init__`` * Ignore ``object``
* Add missing setting to ``pylintrc``Daniël van Noord2021-09-291-1/+5
|
* Add `consider-using-assignment-expr` to `CodeStyleChecker` (#4876)Marc Mueller2021-08-301-3/+3
| | | | | | | | | | | * Add global py-version config * Add typing-extensions as requirement for Python < 3.10 * Add consider-using-assignment-expr to CodeStyleChecker * Default to max-line-length Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add pylintrc config for typing extension (#4843)Marc Mueller2021-08-141-0/+9
|
* Enable some Pylint extensions (#4842)Nick Drozd2021-08-141-0/+3
|
* Add ignored-parents option to design checker (#4758)Rebecca Turner2021-07-281-0/+3
| | | | | | | | | | | * Add ignored-parents option to design checker This allows users to specify classes to ignore while counting parent classes. Partially closes #3057 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Move to new extension CodeStyleCheckerMarc Mueller2021-06-101-1/+2
|
* Remove implicit concat in str shortened enough by blackPierre Sassoulas2021-04-041-1/+1
|
* Remove filter from list of bad functionsMarc Mueller2021-04-031-1/+1
|
* Fix pylintrc fileMarc Mueller2021-04-031-4/+8
|
* Each enable on their on line in pylintrcPierre Sassoulas2021-03-251-1/+4
|