summaryrefslogtreecommitdiff
path: root/pylint/test/unittest_lint.py
Commit message (Collapse)AuthorAgeFilesLines
* Stopped installing tests with packageAshley Whetter2019-06-201-771/+0
|
* Refactor - Move function for checker in CheckerPierre Sassoulas2019-03-291-3/+2
| | | | | | MsgStore.get_messages_from_checker => Checker.messages MsgStore.check_checker_consistency => Checker.check_consistency Probably makes more sense this way.
* Refactor - Avoid intra-packages circular dependencies for constantsPierre Sassoulas2019-03-291-5/+4
| | | | | | | | Some constants were package internal but were used by multiple packages. This created circular dependencies. By creating a file for constants we make sure this does not happen because we won't import everything important in this file and every thing else can depend on it.
* Refactor - Create a unittest file for MessageStorePierre Sassoulas2019-03-091-114/+15
| | | | Taken from unittest_lint.py
* Refactor - Create a pylint.message packagePierre Sassoulas2019-03-091-3/+2
| | | | | | | | There is a lot of Message related class in Utils this warrant the creation of a new package. See also review for burst utils.py into a package here: https://github.com/PyCQA/pylint/pull/2654#issuecomment-470748956
* Added load_configuration() hook for pluginsMatus Valo2018-12-201-0/+50
| | | | | | | A new optional hook for plugins is added: `load_configuration()`. This hook is executed after configuration is loaded to allow plugins to provide a specific configuration tailored to their purpose (e.g. pylint-django could set up their own set of `good_names` or blacklisted directories)
* Refactor - get_messages -> get_messages_from_checkerPierre Sassoulas2018-12-181-1/+1
|
* Refactor - Consistent function and variable namePierre Sassoulas2018-12-181-12/+12
| | | | | | | We return a list of message definitions so we must rename get_message_definition to get_message_definitions. Resulting variables are now named message_definitions most of the time in order to improve readability. (It was often named "msgs" or worst "symbol")
* Refactor - get_message_definition returning a listPierre Sassoulas2018-12-181-7/+7
| | | | Of MessageDefinition instead of a MessageDefinition.
* Move func_block_disable_msg into regrtest_data, because we already have a ↵Claudiu Popa2018-09-291-1/+2
| | | | test for it in unittest_utils
* Reformat the code with blackClaudiu Popa2018-09-171-279/+323
|
* Use contextlib.redirect_stdoutScott Worley2018-08-221-7/+4
|
* Update copyright noticesClaudiu Popa2018-07-151-1/+7
|
* Filter with should_analyze_file in parallel mode (#2264)Randall Leeds2018-07-101-13/+16
| | | | | | | | | | Each ChildLinter receives a file path and instantiates a linter to check that file. As such, all files are arguments to child linters in parallel mode. Therefore, the check for should_analyze_file must happen in the parent linter, where knowledge of the original arguments is available. Expand the custom should_analyze_file test to exercise parallel mode. Close #1885
* Remove six package usages. (#2151)Sushobhit2018-05-271-8/+7
|
* pyupgrade (#2136)Anthony Sottile2018-05-221-3/+3
|
* Refactor - MessagesStore.check_message_id(msgid)Pierre Sassoulas2018-05-101-8/+8
| | | | Closes #2071
* Fix - Take reviews by PCManticore into accountPierre Sassoulas2018-05-101-2/+4
| | | | See #2075
* Refactor - Better error message for duplicated msgid or symbolPierre Sassoulas2018-05-101-6/+3
| | | | | | | | Create a function to get message definitions list from a checker. Create a function for checking checker consistency Create a function in order to register a MessageDefinition Corrected following the review of pull-request #2036 by Ashley Whetter and PCManticore.
* Correctly strip the path prefix from the report paths (#1883)Reverb C2018-03-011-4/+4
| | | | Closes #1120
* Regenerate copyright noticesClaudiu Popa2017-12-151-0/+13
|
* Use the full filename for identifying __init__.py. (#1461)Craig Citro2017-05-221-0/+14
| | | | | | | | | | | | Previously, `pylint.utils.expand_modules` identified `__init__.py` files by a substring match, which led to false positives for files with names like `flycheck__init__.py`. (While users are unlikely to choose such a filename, tools like flycheck use these sorts of filenames for temporary files.) The result was that `pylint` would end up linting the entire package, not just the file in question. The fix is straightforward -- we use `os.path.basename` instead of a substring check, and add a test.
* Raise meaningful exception for invalid reporter class being selected (#1450)Łukasz Rogalski2017-04-281-0/+7
|
* Python 3.6 invalid escape sequence deprecation fixes (#1396)Ville Skyttä2017-04-021-1/+1
| | | https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
* Spelling fixes (#1397)Ville Skyttä2017-04-021-1/+1
|
* Refactor pytest fixtures. (#1255)Derek Gustafson2017-01-031-9/+8
|
* Parametrized testsDerek Gustafson2016-12-081-39/+33
|
* Removed setup and teardown functions.Derek Gustafson2016-12-081-482/+525
|
* Remove pytest.main calls.Derek Gustafson2016-12-071-44/+23
|
* Reduce dependency on unittestDerek Gustafson2016-12-061-26/+23
|
* Fix pylint warnings.Derek Gustafson2016-12-061-6/+6
|
* Switch test runner from unnittest to pytest.Derek Gustafson2016-12-061-178/+170
|
* PyLinter.should_analyze_file has a new optional parameter, called `is_argument`Claudiu Popa2016-08-231-0/+34
| | | | Close #1079
* Remove useless test.Claudiu Popa2016-08-231-9/+0
|
* Even more granular copyrights (thanks to copyrite)Claudiu Popa2016-07-231-2/+6
|
* Rename UnknownMessage, EmptyReport to UnknownMessageError, EmptyReportErrorGlenn Matthews2016-07-191-2/+2
|
* Move EmptyReport and UnknownMessage to pylint.exceptionsGlenn Matthews2016-07-191-2/+2
|
* Better input validation in register_messages to avoid overwrites.Glenn Matthews2016-07-191-1/+36
| | | | Add InvalidMessageError and use it instead of asserts in pylint.utils.
* Keep a consistent copyright notice across the board.Claudiu Popa2016-07-191-0/+2
| | | | | This was changed automatically in #894, but apparently we need to have the copyright notice somewhere.
* Automatic generation of extensions.rst (#988)Glenn Matthews2016-07-101-0/+17
|
* Removed --files-output option. Part of #975.Claudiu Popa2016-07-061-18/+0
|
* Remove the support for html reportingClaudiu Popa2016-07-051-11/+1
| | | | | | | | | | The html reporter was lately a second class citizen in Pylint, being underdeveloped and mostly neglected. It has a couple of bugs, but the more important reason why this is removed is that we now have a much better json reporter, which can be used as a basis for more prettier html Pylint outputs. Part of #975
* Add the new shorter license header, including to missing files. Close #894.Claudiu Popa2016-06-011-13/+2
|
* Add the current directory as well into sys.path. This will fix some issues ↵Claudiu Popa2016-05-101-4/+4
| | | | with local namespace packages, such as no-name-in-module.
* Disable reports by default and show the evaluation score by defaultClaudiu Popa2015-12-291-0/+1
| | | | | | | | | | | As per discussion from issue #746, the reports were disabled by default in order to simplify the interaction between the tool and the users. The score is still shown by default, as a way of closely measuring when it increases or decreases due to changes brought to the code. The patch introduces a new command line flag, "--score" or its shorthand version, "-s", which controls if the score is shown or not. By default, it's set to true.
* Fix a crash which occurred when old visit methods are encounteredClaudiu Popa2015-11-301-1/+18
| | | | | | | | | | in plugin modules. If a plugin uses an old visit method (visit_class for instance), this can lead to a crash in pylint's base checkers, because the logic in the PylintASTWalker assumes that all checkers have a visit_class / leave_class method. The patch fixes this by looking for both names. Closes issue #711.
* --comment flag was obsoleted and it will be removed in Pylint 1.6.Claudiu Popa2015-08-201-9/+0
|
* missing-module-attribute was removed and the corresponding CLI option, ↵Claudiu Popa2015-08-201-9/+9
| | | | required-attributes, is slated for removal in Pylint 1.6.
* Get rid of logilab.common.compat.Florian Bruhin2015-07-261-4/+3
| | | | | --HG-- branch : no-logilab-common
* Get rid of logilab.common.optik_ext and logilab.common.textutils.Florian Bruhin2015-07-261-8/+1
| | | | | --HG-- branch : no-logilab-common