summaryrefslogtreecommitdiff
path: root/tests/test_self.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-241-9/+1
| | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-9/+9
|
* [ruff] Add RUF specific rules and autofix (#8449)Pierre Sassoulas2023-03-141-11/+11
|
* [__implements__] Remove everything related to the rejected PEP245 (#8404)Pierre Sassoulas2023-03-081-3/+3
|
* Support globbing pattern for input specification (#8312)Alexey Pelykh2023-03-011-0/+7
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fixing some too long lines (#8339)Ollie2023-02-251-2/+2
| | | | | * Changing flake8 max-line-length to 120 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix no-name-in-module when variable is same as module name (#8169)Dani Alcala2023-02-071-0/+9
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Tighten design constraints (#8115)Nick Drozd2023-01-281-0/+1
| | | | | | | | | | | | | * Lower max locals * Lower max statements * Lower max try statements * Lower max branches * Lower max args * Cut design constraints with default values
* [style] Limit line length and complexity using flake8 (#8064)Pierre Sassoulas2023-01-161-5/+7
| | | 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).
* Add `no-header` run option (#7869)Dani Alcala2022-12-301-0/+12
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add test for ModuleNotFoundError fixDaniel Harding2022-12-151-0/+13
| | | | Refs #7938
* add test and expl for line-too-long useless-supp FP (#7887)Dani Alcala2022-12-031-0/+18
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Drop dependency on py module (#7829)Lumír 'Frenzy' Balhar2022-11-231-39/+38
| | | | | | | | | * pytest 7.2 no longer depends on py so it's better to drop it. `tmp_path` fixture is newer and uses `pathlib.Path` from stdlib instead of `LocalPath` from `py._path`. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
* Bump mypy from 0.982 to 0.990 (#7769)dependabot[bot]2022-11-141-1/+1
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Rename `broad-except` and new check `broad-exception-raised` (#7709)Dani Alcala2022-11-051-8/+8
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix a false negative for ``unused-import`` (#7621)Mark Byrne2022-10-291-0/+33
| | | | | | | When linting multiple modules & one module uses an import in a type annotation & the same import is unused in a subsequent module. Closes #4150 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix astroid-error for parsing module encoding (#7663)Dani Alcala2022-10-231-1/+20
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [pre-commit.ci] pre-commit autoupdate (#7566)pre-commit-ci[bot]2022-10-041-1/+1
| | | | | | * Remove noqa for a false positive that was fixed in latest mypy Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Raise ``syntax-error`` correctly on invalid encodings (#7553)Daniël van Noord2022-10-021-0/+5
|
* Accept a comma-separated list of messages IDs in ``--help-msg`` (#7490)Daniël van Noord2022-09-191-0/+1
|
* Turn on ``mypy`` strict mode 🎉 (#7448)Daniël van Noord2022-09-091-1/+1
| | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode
* Finish unfinished typing in non core directories (#7443)Daniël van Noord2022-09-091-1/+1
| | | | | | | | * Add typing to setup calls in documentation folder * Finish some incomplete typing signatures in script * Add typing to unfinished signatures in the tests directory
* Do not lint ignored file on stdin (#7220)Christoph Blessing2022-09-031-0/+14
| | | | | | Previously pylint would lint a file passed on stdin even if the user meant to ignore the file. This commit fixes that issue. Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add typing to ``test_self``Daniël van Noord2022-09-031-13/+13
|
* Check for `<cwd>` before removing first item from `sys.path` in ↵Karthik Nadig2022-08-091-0/+18
| | | | `modify_sys_path`. (#7277)
* Fix failing tests in 'test_self.py' under MacOS (#7234)Mark Byrne2022-08-031-4/+14
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [syntax-error] Fix a crash when the line and column can't be retrieved (#7097)Pierre Sassoulas2022-07-301-6/+3
| | | Closes #3860
* [typing] Add typing to the tests directory (#7183)Pierre Sassoulas2022-07-141-4/+4
|
* Update `astroid` to 2.12 (#7153)Jacob Walls2022-07-131-24/+1
| | | | | | | | Prevent `unused-import` for `six.with_metaclass` Update `contributors-txt` to 0.9.0 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [refactor] Use the context manager for PYTHONPATH in a testPierre Sassoulas2022-07-131-20/+7
|
* [pythonpath context manager] Fix a bug where pythonpath was not restored ↵Pierre Sassoulas2022-07-131-1/+1
| | | | correctly
* [test] Refactor to use pytest.parametrize more in pythonpathPierre Sassoulas2022-07-131-47/+18
|
* [test] Refactor to use pytest.parametrize morePierre Sassoulas2022-07-131-105/+33
|
* [refactor] Move the context manager for pythonpath in pylint.testutilPierre Sassoulas2022-07-131-32/+18
|
* [refactor] Move variables outside of the context managerPierre Sassoulas2022-07-131-51/+15
|
* [refactor] Move test context manager to pylint.testutilsPierre Sassoulas2022-07-111-19/+1
|
* Normalize path before checking if path should be ignored (#7080)Matus Valo2022-06-281-0/+21
| | | | 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>
* Replace deprecated uses of `do_exit` with `exit`Jacob Walls2022-06-231-1/+1
|
* Treat `--errors-only` as a disable, not a paired enable/disable (#6937)Jacob Walls2022-06-151-0/+10
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Merge branch 'maintenance/2.13.x' into main following 2.13.9 releasePierre Sassoulas2022-05-131-4/+4
|\
| * Bump pylint to 2.13.9, update changelogv2.13.9Pierre Sassoulas2022-05-131-4/+4
| |
| * Respect ignore configuration options when --recursive=y. (#6528)Matus Valo2022-05-131-1/+75
| | | | | | | | | | | | | | * Ignore specified files/directories in recursive mode Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* | Respect ignore configuration options when --recursive=y. (#6528)Matus Valo2022-05-131-1/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ignore specified files/directories in recursive mode * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update Changelog * Fix typo in Changelog * Fix typo in comment * Add missing regrtest data directory * Improved unittests * Move common code of checking if file is ignored to separate function * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Rename is_ignored_file to _is_ignored_file Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update ChangeLog 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: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* | Use main instead of master as main checker name (#6569)Daniël van Noord2022-05-101-6/+8
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Make sure that --generate-rcfile generates a valid file (#6566)Daniël van Noord2022-05-101-0/+11
| |
* | Make sure that --generate-toml-config generates a valid file (#6564)Daniël van Noord2022-05-101-0/+15
| |
* | Disable fixme for internal uses before we make it optional in #3512 (#6482)Pierre Sassoulas2022-05-011-1/+0
| |
* | 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-2/+1
| |
* | Use an empty pylintrc for tests using project's pylintrc implicitelyPierre Sassoulas2022-04-261-45/+45
| | | | | | | | | | | | | | | | | | | | 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>