Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • pycqa/pylint
1 result
Show changes
Commits on Source (3)
Loading
Loading
@@ -18,7 +18,7 @@ from setuptools import __version__ as setuptools_version
 
modname = distname = 'pylint'
 
numversion = (1, 7, 2)
numversion = (1, 7, 3)
version = '.'.join([str(num) for num in numversion])
 
install_requires = [
Loading
Loading
Loading
Loading
@@ -631,6 +631,8 @@ class FormatChecker(BaseTokenChecker):
elif token[1] == ',':
if not bracket_level:
return False
elif token[1] == '.':
continue
elif token[0] not in (tokenize.NAME, tokenize.STRING):
return False
return False
Loading
Loading
Loading
Loading
@@ -205,8 +205,8 @@ if multiprocessing is not None:
 
# Run linter for received files/modules.
for file_or_module in iter(tasks_queue.get, 'STOP'):
result = self._run_linter(file_or_module[0])
try:
result = self._run_linter(file_or_module[0])
results_queue.put(result)
except Exception as ex:
print("internal error with sending report for module %s" %
Loading
Loading
@@ -795,6 +795,8 @@ class PyLinter(config.OptionsManagerMixIn,
all_stats = []
module = None
for result in self._parallel_task(files_or_modules):
if not result:
continue
(
_,
self.file_state.base_name,
Loading
Loading
Loading
Loading
@@ -217,6 +217,7 @@ class TestCheckSpace(CheckerTestCase):
with self.assertNoMessages():
self.checker.process_tokens(tokenize_str('foo(foo=bar)\n'))
self.checker.process_tokens(tokenize_str('foo(foo: int = bar)\n'))
self.checker.process_tokens(tokenize_str('foo(foo: module.classname = bar)\n'))
self.checker.process_tokens(tokenize_str('foo(foo: Dict[int, str] = bar)\n'))
self.checker.process_tokens(tokenize_str('foo(foo: \'int\' = bar)\n'))
self.checker.process_tokens(tokenize_str('foo(foo: Dict[int, \'str\'] = bar)\n'))
Loading
Loading