Skip to content

Commit bd2e936

Browse files
author
Mikhail Arkhipov
committed
Separate file for pylint root config
1 parent 707a8ca commit bd2e936

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/test/linters/lint.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ suite('Linting', () => {
231231
});
232232
test('PyLint with config in root', async () => {
233233
await fs.copy(path.join(pylintConfigPath, '.pylintrc'), path.join(workspaceUri.fsPath, '.pylintrc'));
234-
await testLinterMessages(Product.pylint, path.join(pylintConfigPath, 'file.py'), []);
234+
await testLinterMessages(Product.pylint, path.join(pylintConfigPath, 'file2.py'), []);
235235
});
236236
test('Flake8 with config in root', async () => {
237237
await testLinterMessages(Product.flake8, path.join(flake8ConfigPath, 'file.py'), filteredFlake8MessagesToBeReturned);
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"""pylint option block-disable"""
2+
3+
__revision__ = None
4+
5+
class Foo(object):
6+
"""block-disable test"""
7+
8+
def __init__(self):
9+
pass
10+
11+
def meth1(self, arg):
12+
"""meth1"""
13+
print self.blop
14+
15+
def meth2(self, arg):
16+
"""meth2"""
17+
# pylint: disable=unused-argument
18+
print self\
19+
+ "foo"

0 commit comments

Comments
 (0)