-
-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
91 additions
and
12 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from sys import * | ||
import sys | ||
|
||
|
||
int = 12 | ||
++int | ||
|
||
some_list = list((node for node in 'abc')) | ||
some_tuple = (1, 2, ) | ||
braking_pycodestyle=3 | ||
|
||
# commented: str = 'comment' | ||
|
||
def camelCase(): ... | ||
|
||
'{}'.format(1) | ||
"" | ||
'%s' % 'test' | ||
|
||
assert True | ||
ipdb.set_trace() | ||
|
||
logger.info( | ||
'Hello {world}'.format(world='Earth') | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
These test ensures that each plugin is enabled and working. | ||
We only test a single warning from each plugin. | ||
We do not test that any of the 3rd party plugins work correctly. | ||
It is not our responsibility. | ||
""" | ||
|
||
|
||
import subprocess | ||
|
||
|
||
def test_noqa_fixture_disabled(absolute_path): | ||
"""End-to-End test to check that all plugins are enabled.""" | ||
filename = absolute_path('fixtures', 'external_plugins.py') | ||
process = subprocess.Popen( | ||
['flake8', '--disable-noqa', filename], | ||
stdout=subprocess.PIPE, | ||
stderr=subprocess.PIPE, | ||
) | ||
stdout, _ = process.communicate() | ||
output = stdout.decode('utf8') | ||
|
||
assert output.count('A001') > 0 # flake8-builtins | ||
assert output.count('B002') > 0 # flake8-bugbear | ||
assert output.count('C101') > 0 # flake8-coding | ||
assert output.count('C400') > 0 # flake8-comprehensions | ||
assert output.count('C819') > 0 # flake8-commas | ||
assert output.count('D100') > 0 # flake8-docstring | ||
assert output.count('E225') > 0 # pycodestyle | ||
assert output.count('E800') > 0 # flake8-eradicate | ||
assert output.count('F401') > 0 # flake8 | ||
assert output.count('G001') > 0 # flake8-logging-format | ||
assert output.count('I001') > 0 # flake8-isort | ||
assert output.count('N802') > 0 # pep8-naming | ||
assert output.count('P101') > 0 # flake8-string-format | ||
assert output.count('Q000') > 0 # flake8-quotes | ||
assert output.count('S001') > 0 # flake8-pep3101 | ||
assert output.count('S101') > 0 # flake8-bandit | ||
assert output.count('T100') > 0 # flake8-debugger |