Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Drop support for Python 3.7 (#8609) | Marc Mueller | 2023-04-24 | 1 | -6/+1 |
| | | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests | ||||
* | [cleanup] Upgrade more doc following the PyCQA migration | Pierre Sassoulas | 2023-03-31 | 6 | -14/+14 |
| | |||||
* | [PyCQA migration] Upgrade links to the repositories in code and doc (#8514) | Pierre Sassoulas | 2023-03-29 | 9 | -18/+18 |
| | |||||
* | [deprecation] Make 'OutputLine' require a fixed number of args (#8474) | Pierre Sassoulas | 2023-03-28 | 1 | -47/+1 |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | [testutil] Do not count files with leading underscores | Pierre Sassoulas | 2023-03-28 | 2 | -7/+7 |
| | |||||
* | [refactor] Separate assertion from setup in functional test's test | Pierre Sassoulas | 2023-03-28 | 1 | -21/+32 |
| | |||||
* | [testutil] Display recursive call for crowded functional test dir | Pierre Sassoulas | 2023-03-28 | 4 | -0/+16 |
| | |||||
* | [testutil] Fix the algorithm for functional test discovery | Pierre Sassoulas | 2023-03-28 | 2 | -3/+8 |
| | |||||
* | [functional tests] Display all violations for disorganized directories | Pierre Sassoulas | 2023-03-28 | 1 | -1/+5 |
| | |||||
* | [testutil] Add proper test for the functional tests helpers | Pierre Sassoulas | 2023-03-28 | 17 | -29/+132 |
| | |||||
* | [ruff] Add RUF specific rules and autofix (#8449) | Pierre Sassoulas | 2023-03-14 | 2 | -3/+4 |
| | |||||
* | Update disallowed-name to flag module-level variables (#7808) | Dani Alcala | 2023-01-25 | 1 | -1/+1 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | [primer] Fall back to no rcfile rather than pylint's (#7798) | Jacob Walls | 2022-11-19 | 1 | -2/+2 |
| | |||||
* | Add typing to several test files (#7440) | Daniël van Noord | 2022-09-09 | 1 | -2/+2 |
| | |||||
* | Complete typing of all generic types (#7406) | Daniël van Noord | 2022-09-04 | 1 | -4/+14 |
| | | | | And update ``mypy`` configuration | ||||
* | nest _test_environ_pythonpath independent of outside PYTHONPATH (#7367) | Ben Greiner | 2022-08-27 | 1 | -17/+25 |
| | | | Closes #7366 | ||||
* | Use permanent links in the primer comment (#7332) | Daniël van Noord | 2022-08-22 | 7 | -124/+130 |
| | |||||
* | [typing] Add typing to the tests directory (#7183) | Pierre Sassoulas | 2022-07-14 | 1 | -1/+1 |
| | |||||
* | [primer] Fix a silent fail when no command were given (#7185) | Pierre Sassoulas | 2022-07-14 | 1 | -0/+11 |
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | [pythonpath context manager] Fix a bug where pythonpath was not restored ↵ | Pierre Sassoulas | 2022-07-13 | 1 | -1/+22 |
| | | | | correctly | ||||
* | [testutils] Add a parameter to context manager changing sys.path or cwd | Pierre Sassoulas | 2022-07-11 | 1 | -0/+50 |
| | |||||
* | [primer] Add a test for truncating comments | Pierre Sassoulas | 2022-06-20 | 2 | -29/+82 |
| | |||||
* | [primer] Add tests for the primer comment generated for PR (#6969) | Pierre Sassoulas | 2022-06-18 | 10 | -0/+212 |
| | | | | | | * [primer] Add tests for the primer comment generated for PR This will permits to check that the comment is still correct in order to modify it in the future. We only test the primer for the target interpreter/OS. | ||||
* | Makes functional tests auto-update works even if the current output is wrong ↵ | Pierre Sassoulas | 2022-06-13 | 1 | -7/+7 |
| | | | | | | | | | | (#6891) Previously if an exception was raised during parsing we re-raised an explanation. Most of the time I just want to regenerate the output from the current pylint's output. It's what the exception suggested but it's impossible to do as the error is also raised when updating, so you had to empty the file. Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | [refactor] Make 'pylint.testutil.primer' a private API | Pierre Sassoulas | 2022-06-10 | 1 | -1/+1 |
| | |||||
* | [refactor] Create a primer package in 'pylint.testutils' | Pierre Sassoulas | 2022-06-10 | 1 | -0/+0 |
| | |||||
* | Run linking and diadef handling with patched `sys.path` (#6617) | Andreas Finkler | 2022-05-17 | 5 | -0/+37 |
| | | | * Use separate directory for pyreverse related test data | ||||
* | Use main instead of master as main checker name (#6569) | Daniël van Noord | 2022-05-10 | 1 | -1/+1 |
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Check documentation examples for fatal errors (#6475) | Jacob Walls | 2022-04-30 | 1 | -0/+1 |
| | |||||
* | Prevent false negatives for fatal errors with `--minimal-messages-config` | Jacob Walls | 2022-04-17 | 1 | -0/+3 |
| | |||||
* | Add ``--minimal-messages-config`` option for functional tests (#6246) | Andreas Finkler | 2022-04-16 | 4 | -0/+58 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ``--minimal-messages-config`` option for functional tests * Add test file option to exclude from --minimal-messages-config run. * Fix ``too-many-branches`` false negative * Fix ``access-member-before-definition`` false negative * Fix ``consider-using-min-builtin`` and ``consider-using-max-builtin`` false negatives * Fix ``consider-using-with`` false negative * Exclude ``deprecated-module`` tests from ``--minimal-messages-config`` run. Have to find out how the list of deprecated modules is built first. * Update doc/whatsnew/2.14.rst * Ignore deprecated module false negatives * Fix ``deprecated-typing-alias`` false negative * Skip tests for ``fixme`` message, don't know yet how enable/disable affects TokenChecker/RawChecker * Exclude functional test for various logging checks, as the output string depends on what messages are enabled. * Fix false negative for ``nan-comparison`` * Fix false negative for ``non-ascii-module-import`` * Fix false negative for ``non-ascii-file-name`` * Skip tests for logging messages * Fix false negative for ``undefined-variable`` in ``metaclass`` argument * Exclude test for ``catching-non-exception``. ``exc._all_bases_known`` is ``False`` when enabling just this message. * Exclude ``ungrouped_imports_suppression``. ``useless-suppression`` is triggered too often in this case. * Fix false negative for ``use-a-generator`` * Exclude functional tests for ``useless-suppression`` from ``--minimal-messages-config`` * Exclude another deprecation check from ``--minimal-messages-config`` run * Update tests/testutils/data/m/minimal_messages_config.py Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Use ``python-typing-update`` on half of the ``tests`` directory (#6317) | Daniël van Noord | 2022-04-14 | 2 | -8/+13 |
| | |||||
* | Remove ``set_config_directly`` (#6123) | Daniël van Noord | 2022-04-02 | 1 | -15/+0 |
| | |||||
* | Add a pre-commit hook to check the copyright notice | Pierre Sassoulas | 2022-03-24 | 7 | -6/+12 |
| | | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc | ||||
* | Simplify hard to maintain copyright notice | Pierre Sassoulas | 2022-03-24 | 5 | -0/+5 |
| | | | | | | 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. | ||||
* | Check functional test directory for correct structure | Daniël van Noord | 2022-02-10 | 5 | -1/+10 |
| | |||||
* | Update ``pydocstringformatter`` to 0.4.0 (#5787) | Daniël van Noord | 2022-02-10 | 1 | -1/+1 |
| | |||||
* | Make sure to split non-separated csv ``OuputLine's`` (#5665) | Daniël van Noord | 2022-01-11 | 1 | -0/+11 |
| | | | | | * Make sure to split non-separated csv ``OuputLine's`` * Add test for too long output lines | ||||
* | Create ``_config_initialization`` util and use in functional tests (#5591) | Daniël van Noord | 2021-12-23 | 3 | -0/+27 |
| | |||||
* | Add a DeprecationWarning to set_config_directly (#5511) | Daniël van Noord | 2021-12-13 | 1 | -0/+15 |
| | |||||
* | Add typing to LintModuleOutputUpdate._check_output_text | Pierre Sassoulas | 2021-12-03 | 1 | -1/+1 |
| | | | | Better typing for test options and fix existing issue | ||||
* | Add a warning in functional test update for bad python versions | Pierre Sassoulas | 2021-12-03 | 1 | -0/+12 |
| | |||||
* | Add unit tests for LintModuleOutputUpdate | Pierre Sassoulas | 2021-12-03 | 1 | -0/+63 |
| | |||||
* | Add ``min_pyver_end_position`` option (#5386) | Daniël van Noord | 2021-11-25 | 1 | -15/+68 |
| | | | | * Add ``min_pyver_end_position`` option | ||||
* | Update functional test expected output (#5349) | Daniël van Noord | 2021-11-24 | 1 | -4/+52 |
| | | | | | | * Add ``confidence`` to all expected functional test outputs * Make OutputLine accept end_line and end_column Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> | ||||
* | Primer tests "à la mypy" (#5173) | Pierre Sassoulas | 2021-11-24 | 1 | -0/+48 |
| | | | | | | | | | | | | * Add changelog and warning about unstable API in testutil * Add primer tests, (running pylint on external libs during tests) In order to anticipate crash/fatal messages, false positives are harder to anticipate. Follow-up will be #5359 and later on #5364 Add '__tracebackhide__ = True' so the traceback is manageable Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | ||||
* | Add ``end_lineno`` and ``end_col_offset`` to ``MessageLocationTuple`` (#5343) | Daniël van Noord | 2021-11-22 | 1 | -6/+1 |
| | |||||
* | Add additional tests for ``OutputLine`` | Daniël van Noord | 2021-11-22 | 1 | -0/+17 |
| | |||||
* | [refactor] Permit to get the expected exit code in configuration test framework | Pierre Sassoulas | 2021-11-22 | 7 | -0/+23 |
| | |||||
* | Fix test decorator for `PyLinter` options (#5195) | Daniël van Noord | 2021-10-22 | 1 | -0/+0 |
| |