summaryrefslogtreecommitdiff
path: root/tests/checkers
Commit message (Collapse)AuthorAgeFilesLines
* Cope with changes to `AssignAttr` constructorJacob Walls2023-04-161-1/+8
|
* Fix `unused-import` to check`dummy-variables-rgx` (#8566)RSTdefg2023-04-121-1/+1
| | | | | Resolve #8500 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-2924-50/+50
|
* [deprecation] Remove duplicated utils typing guards check (#8475)Pierre Sassoulas2023-03-221-17/+16
|
* Fix incorrect preferred-modules matchesDaniël van Noord2023-03-211-0/+17
| | | | Co-authored-by: d33bs <dave.bunten@cuanschutz.edu>
* [ruff] Add RUF specific rules and autofix (#8449)Pierre Sassoulas2023-03-141-3/+4
|
* Deprecate redundant type checking guard utils (#8433)Jacob Walls2023-03-121-0/+1
|
* Fix a crash when `TYPE_CHECKING` is used without importing it (#8435)Jacob Walls2023-03-111-0/+10
|
* Remove deprecated functions and classes (#8409)Daniël van Noord2023-03-091-25/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [deprecation] Remove ``get_message_definitions`` from ``BaseChecker`` (#8401)Pierre Sassoulas2023-03-081-11/+0
|
* [spelling] Ignore spelling in type/mypy type ignore comments (#8370)Pierre Sassoulas2023-03-021-18/+21
| | | | | | | enchant does not understand class name well enough so it creates false positives, and mypy type ignore comments with additional text are a syntax error anyway, so raising a spelling mistakes for it is not really important.
* [spelling checker] Better help message and code organization (#8338)Pierre Sassoulas2023-02-271-0/+15
| | | | Following a failed attempt to add functional tests for spelling checker in #6137
* [test] Use an empty pylintrc so tests to not depend on system's conf (#8350)Pierre Sassoulas2023-02-261-2/+3
| | | | | | | | | | | | | * [test] Use an empty pylintrc so tests to not depend on system's conf Closes #8342 * Update tests/checkers/unittest_imports.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> --------- Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [test] Permits to debug more easily 'test_allow_reexport_package' (#8347)Pierre Sassoulas2023-02-261-1/+1
| | | Refs #8342
* Fixing some too long lines (#8339)Ollie2023-02-251-4/+6
| | | | | * Changing flake8 max-line-length to 120 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add import-based submodule detection for preferred-modules (#8186)Dave Bunten2023-02-081-1/+55
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [ruff] Fix E741 Ambiguous variable name: 'l'Pierre Sassoulas2023-02-061-1/+1
|
* Tighten design constraints (#8115)Nick Drozd2023-01-282-0/+2
| | | | | | | | | | | | | * 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/+43
|
* add test for get msg defclavedeluna2023-01-251-0/+10
|
* add test for Uninferableclavedeluna2023-01-241-0/+14
|
* Add test for existing preferred-modules functionality (#8093)Dave Bunten2023-01-241-0/+23
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [style] Limit line length and complexity using flake8 (#8064)Pierre Sassoulas2023-01-161-34/+19
| | | 125 is a good start. The check was activated in pylint with value = 100, but flake8 is less lenient than pylint and does not make any exceptions (for docstrings, strings and comments in particular).
* [pre-commit] Upgrade to black 23.1a1 with 2023's formatting (#7965)Pierre Sassoulas2022-12-274-7/+1
|
* Fix end_col_offset deprecation msg (#7823)Dani Alcala2022-11-221-1/+1
|
* Fix ``deprecated-method`` false positive with aliases (#7795)Dani Alcala2022-11-191-5/+21
| | | | | When alias for method is similar to name of deprecated method. Closes #5886
* Fix a false negative for ``unused-import`` (#7678)Mark Byrne2022-11-091-6/+6
| | | | | | | | | | | * Fix a false negative for ``unused-import`` when a constant inside ``typing.Annotated`` was treated as a reference to an import. * Update with Daniël's suggestions: - More understandable function parameter name. - Update function parameter type: Expect a tuple of strings. Closes #7547
* Finish unfinished typing in non core directories (#7443)Daniël van Noord2022-09-094-8/+8
| | | | | | | | * Add typing to setup calls in documentation folder * Finish some incomplete typing signatures in script * Add typing to unfinished signatures in the tests directory
* Finish some incomplete typing signatures (#7442)Daniël van Noord2022-09-092-9/+13
|
* Add typing to several test files (#7440)Daniël van Noord2022-09-094-8/+12
|
* Fix #3299 false positives with names in string literal type annotations (#7400)Levi Gruspe2022-09-041-0/+26
| | | | | Don't emit 'unused-variable' or 'unused-import' on names in string literal type annotations (#3299) Don't treat strings inside typing.Literal as names
* Complete typing of all generic types (#7406)Daniël van Noord2022-09-041-6/+9
| | | | And update ``mypy`` configuration
* Revert "Fix the failure to lint modules contained under an identically named ↵Jacob Walls2022-08-131-2/+1
| | | | | | | | | directory" (#7304) This reverts commit 3ebb700aed88a427011c2e88705f66ec0b3830a4. * Add regression test for namespace packages under directory on path * Fix expected result in `test_relative_beyond_top_level_two`
* Clean up beyond_top_level tests (#7279)Daniël van Noord2022-08-121-26/+41
|
* Add xfail for `test_relative_beyond_top_level_two`Jacob Walls2022-08-031-0/+4
| | | | It uses epylint to run these tests, but since epylint manipulates cwd, that confounds what is under test
* [typing] Add typing to the tests directory (#7183)Pierre Sassoulas2022-07-148-41/+38
|
* Remove never run test (#6520)Daniël van Noord2022-05-061-10/+0
|
* spellcheck will skip the rule names of mypy inline directives (#5929)Eli Fine2022-05-061-1/+19
| | | | Co-authored-by: Eli Fine <eli.fine@resilience.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Change default values of ``ignore-imports`` and ``ignore-signatures`` (#6500)Daniël van Noord2022-05-051-0/+2
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix AstCallbackMethod typing (#6445)Marc Mueller2022-05-051-2/+3
|
* Remove some words from custom dictionary and update spellingDaniël van Noord2022-04-261-1/+1
|
* [spelling] Remove remaining typoes detected by the spelling checkerPierre Sassoulas2022-04-261-1/+1
|
* Use an empty pylintrc for tests using project's pylintrc implicitelyPierre Sassoulas2022-04-261-2/+6
| | | | | | | | | | We don't want to use the project's pylintrc during tests, because it means that a change in our config could break tests. But we want to see if the changes to the default break tests. Create a private '_Run' class in pylint.testutil._run Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add two assertions for reporterDaniël van Noord2022-04-211-0/+2
|
* Remove ``IAstroidChecker`` from ``__implements__``Daniël van Noord2022-04-191-2/+1
|
* Deprecate ``MapReduceMixin`` and implements its methods in ``BaseChecker`` ↵Daniël van Noord2022-04-191-1/+1
| | | | | | (#6383) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Improve the ``__gt__`` method of Checkers (#6355)Daniël van Noord2022-04-161-3/+31
|
* Deprecate ``check_messages`` in favor of ``only_required_for_messages`` (#6196)Andreas Finkler2022-04-161-0/+15
| | | | | | * Add TypeVars for ``BaseChecker`` subclasses and AST callbacks Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Deprecate ``get_global_option``Daniël van Noord2022-04-151-3/+2
|
* Use ``python-typing-update`` on second half of the ``tests`` directoryDaniël van Noord2022-04-148-34/+41
|