summaryrefslogtreecommitdiff
path: root/CONTRIBUTORS.txt
Commit message (Collapse)AuthorAgeFilesLines
...
* Add new check `comparison-with-callable`ssolanki2018-06-151-0/+1
| | | | This check warn for comparison with bare callable, without calling it.
* `len-as-condition` recognize more cases (#2165)Matej Marušák2018-06-041-0/+2
| | | | | | | | | This patch adds lints for two more cases: 1) `if len(X) < 1:` 2) `if len(X) <= 0:` Meaning of the both is same as `if not X`. Signed-off-by: Matej Marusak <mmarusak@redhat.com>
* Update the contributors to reflect the realityClaudiu Popa2018-06-041-16/+20
|
* Add checker to warn when imported package is renamed as original one.Sushobhit2018-05-191-1/+2
| | | | | | | Given an import, we'll emit this error whenever pylint finds an alias with the same name as the import module. Close #2052.
* Take annotations in account for missing-type-doc and missing-return-docSushobhit2018-05-191-1/+2
| | | Close #2083
* Add `--exit-zero` option (#2099)Jason Owen2018-05-171-0/+2
| | | | | | | | | | | | | | Add a new command-line option for the use of continuous integration scripts which abort if a command returns a non-zero status code. If the option is specified, and Pylint runs successfully, it will exit with 0 regardless of the number of lint issues detected. Configuration errors, parse errors, and calling Pylint with invalid command-line options all still return a non-zero error code, even if `--exit-zero` is specified. Thanks for hosting a sprint at PyCon 2018! Close #2042
* Fix handling of inline scopes in too-many-statements (#1979)Mark Miller2018-05-171-0/+2
| | | | | | Nested scopes don't reset reset the `too-many-statements` check state. Close #1978
* Switch to using verbose instead of quiet since we want to disable this by ↵Claudiu Popa2018-05-171-0/+2
| | | | default
* Fix an error which occurred when using the docparams extension and ↵Adam Dangoor2018-05-161-0/+2
| | | | documenting a NotImplementedError.
* Add a new check: `logging-fstring-interpolation`.Mariatta Wijaya2018-05-151-0/+4
| | | | | | | | A new check `logging-fstring-interpolation` is added. It emits a warning when f-string is used within logging function calls. Fixes https://github.com/PyCQA/pylint/issues/1998
* Add new check 'comparison-with-itself' (#2074)Sushobhit2018-05-151-0/+3
| | | | | | | This test checks that we don't compare a value with itself, which might suggest some potential bug or an honest mistake. Fixes #2051
* Add check for unhashable dict keys (fixes #586) (#2089)Ben Green2018-05-151-0/+2
|
* Includes file paths in the default report format (#2088)Jace Browning2018-05-151-0/+2
| | | | | | | | | | | | | | | The default report format in mypy, pydocstyle, and other tools includes the file path so that the user of certain terminals (e.g. iTerm) can click on each warning to open that line in their editor. For example, here is what the default mypy output looks like: framework/views/billing.py:92: error: Incompatible return value type (got "View", expected "DashboardTab") With this new format, pylintoutput looks like: framework/views/dashboards.py:21:8: W0612: Unused variable 'x' (unused-variable) Note that some editors (e.g. Sublime Text) index columns from 1, so this will place the cursor one column to the left of the warning.
* Fix typo in base checker unit test (#2093)Fureigh2018-05-141-0/+2
| | | | | | | This commit does two things: * Change `it's name should` to `its name should` * Update CONTRIBUTORS.txt Thanks for holding a sprint at PyCon!
* Warn when using subprocess.Popen preexec_fn kwarg (#2087)Banjamin Freeman2018-05-141-0/+2
| | | Close #1195
* Update ChangeLog, whatsnew and CONTRIBUTORSMarianna Polatoglou2018-05-141-0/+2
|
* Add support for numpydoc return value names (#2031)Mitchell T.H. Young2018-04-241-0/+2
| | | | | | | | | | | | | | | Numpydoc specification allows for optional return value name in the form of: ``` Returns ------- name : type Some description ``` These were not being honored by the current regex for return lines. This adds an optional, non-capturing group to the regex which accounts for the `name : ` bit. Fixes #2030
* Don't report docstrings on inner functions. (#1987)glmdgrielson2018-04-021-0/+1
| | | | | | Inner functions don't need to be documented, as they are not part of a public API. Fixes PyCQA/pylint#1956
* New error condition try-except-raise (#1939)Alexander Todorov2018-03-291-1/+2
| | | | | | | | reports on except handlers where raise is the first operator in the handler body. Reports on either bare raise or when we're raising the same type of exception as the one that is being handled. Update existing tests to ignore the new error condition.
* Add contributorClaudiu Popa2018-03-271-0/+3
|
* Changelog entry for indentation handlingAndreas Freimuth2018-03-251-1/+3
|
* Add check for swapping variables with tuples(#1922) (#1929)Konstantin2018-03-161-0/+1
|
* Correctly strip the path prefix from the report paths (#1883)Reverb C2018-03-011-0/+3
| | | | Closes #1120
* Update contribute documentation with correct test path (#1901)thernstig2018-03-011-0/+2
|
* Add entry in changelogIoana Tagirta2018-02-101-0/+2
|
* Add new checker useless-returnMr. Senko2018-01-251-1/+2
| | | | | warns about a single "return" or "return None" statement at the end of functions or methods
* Update committers list, mark both Lukasz and Guillaume as new committersClaudiu Popa2018-01-251-11/+11
|
* Update contributors and changelog.Brian Shaginaw2018-01-181-0/+2
|
* Use the proper node to get the name for redefined functions (#1792)Jacques Kvam2017-12-241-0/+2
| | | Close #1774
* New warning: shallow copy of os.environ (#1733)Martin2017-11-111-0/+3
| | | | | | | | | | | | | | Shallow copy of os.environ doesn't work as people may expect. os.environ is not a dict object but rather a proxy object, so any changes made on the copy may have unexpected effects on os.environ Instead of copy.copy(os.environ) method os.environ.copy() should be used. Message id is: `shallow-copy-environ` See https://bugs.python.org/issue15373 for details. Resolves: #1301
* Do not warn no-absolute-import multiple times per file (#1725)Daniel Miller2017-11-111-0/+2
|
* Extend trailing-comma-tuple check to more complex assignments (#1721)Bryce Guinta2017-11-051-0/+2
| | | | | | | | | | | | | * Extend trailing-comma-tuple check to more complex assignments The previous implementation was too conservative with looking for previous tokens associated with assignment: It looked only at the immediately previous token, causing 'a = (5),' to not be caught. Now The current implementation backtracks to the start of the line to find an assignment substring. Fixes issue #1713
* useless-super-delegation takes into account default values for the current ↵hippo912017-09-301-0/+2
| | | | | implementation A method can reimplement a super method in order to provide a different default value, in which case we shouldn't emit ``useless-super-delegation``.
* Add new contributorClaudiu Popa2017-09-181-0/+2
|
* Warn when raising an exception with a format string and some argumentsMartin von Gagern2017-07-211-0/+2
| | | | | | | | | | | | | | | | | | | Bad (now causing a new warning): raise SomeError('message about %s', foo) raise SomeError('message about {}', foo) Good (likely intended): raise SomeError('message about %s' % foo) raise SomeError('message about {}'.format(foo)) People used to printf in C might accidentally write a comma to separate a message format containing % placeholders from the arguments to substitute, instead of the % sign required to actually do the formatting and build the error message as a single string. But even when using {…} as a placeholder, some libraries will prefer deferred evaluation for e.g. logging calls, so a user might have a habit of using commas instead of a str.format() call for those, too. This warning points out such use cases. It can be ignored on projects which deliberately use lazy formatting at all user-facing exception handlers.
* Split missing+differing docstring param checks (#1344)John Paraskevopoulos2017-03-111-0/+2
| | | | | | | | | Add 2 different error codes for different params defined Split param name checking in two functions, one for missing checks and another for different names checks Check for missing params and then check for differing params Minor fix in type of found_argument_names [list --> set] Fixes #1342
* Add new extension for detecting integer comparisons against zero (#1243)Alexander Todorov2016-12-311-1/+2
|
* Add new extension for comparison against empty string constants (#1183)Alexander Todorov2016-12-291-1/+2
|
* Add new contributor and changelog entryClaudiu Popa2016-12-271-0/+2
|
* Check the number of elements before attempting to unpack themMoises Lopez - https://www.vauxoo.com/2016-12-271-0/+1
|
* Add new contributor.Claudiu Popa2016-12-141-0/+2
|
* Add a new option for finding unused global variables.Łukasz Rogalski2016-12-131-1/+1
| | | | Closes #919
* Add a new check, superflous-else-returnMoisés López2016-12-041-1/+1
| | | | | This rule verifies that an if statement does not have an else branch, preceded by a return statement inside the if branch.
* Update the committers list.Claudiu Popa2016-12-041-11/+17
|
* Add Python 3 checker for accessing deprecated functions on the `string` ↵Roy Williams2016-12-021-0/+1
| | | | | | module. (#1185) This also triggered a "Rule of 3" refactoring for me to generalize warning about accessing a given attribute on a module.
* Add a Python 3 Checker to find invalid imports in Python 3 (#1182)Roy Williams2016-11-301-2/+3
|
* Add new checker len-as-condition (#1154)Alexander Todorov2016-11-291-1/+2
| | | | | | * Add new checker len-as-condition * Fix len(SEQUENCE) warnings discovered by new checker
* Add a Python 3 warning about accessing sys.maxint (#1180)Roy Williams2016-11-291-0/+1
|
* Report when __slots__ is a simple string and not a non-string container (#1171)Anthony Foglia2016-11-241-0/+2
| | | | | | * Report when __slots__ is a simple string and not a non-string container * Update ChangeLog
* Add a Python 3 checker for calls to `encode` or `decode` with non-text ↵Roy Williams2016-11-231-1/+2
| | | | | | | codecs. (#1172) These codecs were removed from the type restricted convenience methods on `str`, `bytes`, and `bytearray` in Python 3.4 and produce inconsistent output with their counterparts in `codecs`