summaryrefslogtreecommitdiff
path: root/tests/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Finish unfinished typing in non core directories (#7443)Daniël van Noord2022-09-091-6/+15
| | | | | | | | * Add typing to setup calls in documentation folder * Finish some incomplete typing signatures in script * Add typing to unfinished signatures in the tests directory
* Add typing to several test files (#7440)Daniël van Noord2022-09-091-1/+1
|
* Remove redundant second batch of old primerDaniël van Noord2022-05-301-2/+0
|
* Use an empty pylintrc for tests using project's pylintrc implicitelyPierre Sassoulas2022-04-261-2/+4
| | | | | | | | | | 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>
* Improve CPU count detection in cgroup environments and fix CI (#6098)Daniël van Noord2022-04-161-1/+16
| | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Add ``--minimal-messages-config`` option for functional tests (#6246)Andreas Finkler2022-04-161-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-0/+4
| | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-1/+1
|
* Follow-up to some test changes (#5685)Daniël van Noord2022-01-151-5/+0
| | | | | * Add `end_line` attribute to ``test___check_invalid_chars`` * Remove ``unicode_example_dir`` from conftest
* Add a checker for misleading unicode (#5311)Kound2022-01-131-0/+5
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Update ``primer`` tests to own file, separate batches and concurrent runs ↵Daniël van Noord2021-11-291-2/+4
| | | | (#5425)
* Add documentation for primer and convert to command line option (#5387)Daniël van Noord2021-11-251-0/+36
| | | | | * Add documentation for primer and convert to command line option Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix typo in pylintrc for useless-suppression (#5303)Daniël van Noord2021-11-231-1/+0
| | | | | | | | | | | * 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>
* Add very basic tests for expand modulesPierre Sassoulas2021-04-031-0/+6
|
* Stopped installing tests with packageAshley Whetter2019-06-201-0/+53