summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add a regression tests for https://github.com/PyCQA/astroid/pull/1207tests-for-astroid-1207Pierre Sassoulas2021-12-311-1/+16
|
* Add regression test for issue 5461 (#5623)Daniël van Noord2021-12-313-0/+14
|
* [regression test] Add functional test for symlinked modulesPierre Sassoulas2021-12-316-2/+31
| | | | | | This is a regression test for https://github.com/PyCQA/astroid/issues/1253 Closes #1470
* Upgrade astroid to 2.9.1Pierre Sassoulas2021-12-312-2/+2
| | | | | | | | Closes #1470 Closes #3499 Closes #4302 Closes #4798 Closes #5081
* Allow passing arguments if ``epylint`` entry point is used as function (#5616)Daniël van Noord2021-12-315-10/+19
|
* Rename ``arguments`` to ``argv`` in entry point functions (#5619)Daniël van Noord2021-12-312-11/+11
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Allow passing arguments when entry points are used as functions (#5613)Daniël van Noord2021-12-305-8/+54
|
* Fix false positive `consider-using-dict-comprehension` when creating a dict ↵Tushar Sadhwani2021-12-306-4/+45
| | | | | | using a list of tuple where key AND value vary depending on the same condition (#5590) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Use ``with`` statement in ``parallel.py`` (#5612)Daniël van Noord2021-12-302-10/+6
|
* Use ``dill`` to pickle when run in parallel mode (#5609)Daniël van Noord2021-12-305-19/+65
|
* Update CACHE_VERSION of primer, add comment and update paths (#5611)Daniël van Noord2021-12-302-1/+4
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Add caching to bottlenecks in the message store (#5605)Pierre Sassoulas2021-12-293-11/+33
| | | | | | Some functions can't be cached without impacting the correctness with the current design. Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Get the msgid directly from the MessageIdStore (#5606)Pierre Sassoulas2021-12-281-2/+1
| | | | | | | | | | | | | | | | We don't need to create message definitions to get their msgids. The level of indirection may suggest we need to refactor a little here. Maybe we actually need message definition only when we want to display the messages. Here's the current implementation of get_message_definitions: def get_message_definitions(self, msgid_or_symbol: str) -> List[MessageDefinition]: """Returns the Message definition for either a numeric or symbolic id.""" return [ self._messages_definitions[m] for m in self.message_id_store.get_active_msgids(msgid_or_symbol) ]
* Fix #2399: Avoid negative scores by default (#5595)Jacob Walls2021-12-288-13/+31
|
* Make functional tests always go through config initialization (#5594)Daniël van Noord2021-12-283-11/+30
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix reported node for `unnecessary-comprehension` (#5601)Tushar Sadhwani2021-12-283-17/+19
|
* Refactor message disabling and enabling (#5596)Daniël van Noord2021-12-281-29/+44
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [pre-commit.ci] pre-commit autoupdate (#5603)pre-commit-ci[bot]2021-12-281-1/+1
| | | | | | updates: - [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add typing and uniformize the checker registering in Pylinter (#5558)Pierre Sassoulas2021-12-2753-201/+328
| | | | | Remove verbose docstring in code, keep them in example and doc Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Bump ci cache version (#5602)Marc Mueller2021-12-271-1/+1
|
* Add documentation about profiling and performance analysis (#5597)Daniël van Noord2021-12-272-0/+119
| | | Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* Create ``_config_initialization`` util and use in functional tests (#5591)Daniël van Noord2021-12-236-48/+111
|
* Upgrade mypy to 0.930 (#5592)Marc Mueller2021-12-233-3/+3
|
* Add a code of conduct from template (#5589)Pierre Sassoulas2021-12-231-0/+120
| | | * Add a code of conduct from template (then auto fixed by pre-commit)
* Fix typos accross the whole codebase (#5575)Pierre Sassoulas2021-12-2151-168/+171
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Add types to option attributes of ``PyLinter`` and reorganize ``init`` (#5579)Daniël van Noord2021-12-211-12/+23
|
* Add missing method to ``_ManHelpFormatter`` (#5577)Pierre Sassoulas2021-12-211-1/+4
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Rename ``init_linter`` fixture to ``initialized_linter``, add filename (#5581)Daniël van Noord2021-12-211-19/+21
|
* Add typing to checker and plugin attributes of ``PyLinter`` (#5574)Daniël van Noord2021-12-212-8/+26
|
* Add typing to file visiting attributes of ``PyLinter`` (#5576)Daniël van Noord2021-12-211-4/+6
|
* Fix ``used-before-assignment`` for assignment expressions in lambda (#5530)Daniël van Noord2021-12-214-4/+21
|
* Fix #5557: Don't emit `comparison-with-callable` if the callable raises (#5563)Jacob Walls2021-12-215-8/+51
| | | | | | | * Fix #5557: Don't emit `comparison-with-callable` if the callable raises Typing constants such as `typing.Any` raise when called. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add typing to some functions in ``testutils`` (#5573)Daniël van Noord2021-12-213-4/+7
|
* Add missing settings to pylintrc (#5556)Daniël van Noord2021-12-211-17/+203
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove unneccessary use of parenthesis in add_messagePierre Sassoulas2021-12-201-1/+1
|
* Fix the typing for BroadTryClause.visit_tryexceptPierre Sassoulas2021-12-201-1/+2
| | | | | | We're calling it from visit_tryfinally it's not strictly the expected for the visitor pattern
* Fix some typoes before adding typing for checker registeringPierre Sassoulas2021-12-205-22/+14
|
* Revert "Update tbump requirement from ~=6.6.0 to ~=6.6.1 (#5561)" (#5567)Pierre Sassoulas2021-12-201-1/+1
| | | This reverts commit 9d078690e3e7f30900272c6f7d3e79ef7699b2a2.
* Add requirement files to list of files to run primer against (#5566)Daniël van Noord2021-12-201-0/+1
|
* Bump flake8-typing-imports from 1.11.0 to 1.12.0 (#5562)dependabot[bot]2021-12-201-1/+1
| | | | | | | | | | | | | | | | Bumps [flake8-typing-imports](https://github.com/asottile/flake8-typing-imports) from 1.11.0 to 1.12.0. - [Release notes](https://github.com/asottile/flake8-typing-imports/releases) - [Commits](https://github.com/asottile/flake8-typing-imports/compare/v1.11.0...v1.12.0) --- updated-dependencies: - dependency-name: flake8-typing-imports dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update tbump requirement from ~=6.6.0 to ~=6.6.1 (#5561)dependabot[bot]2021-12-201-1/+1
| | | | | | | | | | | | | | | | Updates the requirements on [tbump](https://github.com/dmerejkowsky/tbump) to permit the latest version. - [Release notes](https://github.com/dmerejkowsky/tbump/releases) - [Changelog](https://github.com/dmerejkowsky/tbump/blob/main/Changelog.rst) - [Commits](https://github.com/dmerejkowsky/tbump/compare/v6.6.0...v6.6.1) --- updated-dependencies: - dependency-name: tbump dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump sphinx from 4.3.1 to 4.3.2 (#5560)dependabot[bot]2021-12-201-1/+1
| | | | | | | | | | | | | | | | | Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.3.1 to 4.3.2. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES) - [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.3.1...v4.3.2) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump actions/upload-artifact from 2.3.0 to 2.3.1 (#5559)dependabot[bot]2021-12-201-2/+2
| | | | | | | | | | | | | | | | Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2.3.0 to 2.3.1. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2.3.0...v2.3.1) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix unexpected types used in 'get_global_option' (#5555)Pierre Sassoulas2021-12-201-1/+1
|
* Ignore files with name that starts like an emacs lock files (#5554)Pierre Sassoulas2021-12-2012-7/+47
| | | | | | | | | | * Fix 'path' shadowing variable from outer scope * Ignore file that starts like emacs's file lock Closes #367 Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Update default evaluation formula to match that in default pylintrc (#5553)Jacob Walls2021-12-191-3/+3
|
* Check if decorator returns use keyword (``unexpected-keyword-arg``) (#5547)Daniël van Noord2021-12-185-0/+174
| | | | | | | * Improve coverage * Remove unnecessary declaration * Change spacing
* Fix ``used-before-assignment`` for conditional self-referential typing (#5532)Daniël van Noord2021-12-184-1/+24
|
* Remove unnecessary `if` statement in variable consumption checker (#5531)Daniël van Noord2021-12-181-17/+13
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fixed extremely long processing of long lines with comma's (#5534)Daniël van Noord2021-12-175-16/+51
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>