summaryrefslogtreecommitdiff
path: root/flake8/style_guide.py
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-02-19 11:02:22 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2016-02-19 11:02:22 -0600
commitfbd5944f15f90114d4d9c2e299ec26a30c646d82 (patch)
treedd8baf2d1b370d174b8c487f5b3febb0bd41ce86 /flake8/style_guide.py
parentf4b18229a0294249be22076ad6a52e244acb5a5a (diff)
downloadflake8-fbd5944f15f90114d4d9c2e299ec26a30c646d82.tar.gz
Add specific tests for is_inline_ignored
Update the logic so someone can use a class in their ``# noqa`` ignore list
Diffstat (limited to 'flake8/style_guide.py')
-rw-r--r--flake8/style_guide.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/flake8/style_guide.py b/flake8/style_guide.py
index af68dce..6a05249 100644
--- a/flake8/style_guide.py
+++ b/flake8/style_guide.py
@@ -173,7 +173,7 @@ class StyleGuide(object):
return True
codes = set(utils.parse_comma_separated_list(codes_str))
- if error.code in codes:
+ if error.code in codes or error.code.startswith(tuple(codes)):
LOG.debug('%r is ignored specifically inline with ``# noqa: %s``',
error, codes_str)
return True