Skip to content

Commit

Permalink
pep8/lint compliant ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Oct 28, 2015
1 parent 3558cea commit d37119f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
CHANGES
=======

0.7.3 (unreleased)
0.8.0 (unreleased)
------------------

- Nothing changed yet.
- pep8/lint compliant ignores:
- "# srccheck_ignore_file"
- "# srccheck_ignore"
- "# ignore PyflakesChecker #"


0.7.2 (2015-04-09)
Expand Down
6 changes: 3 additions & 3 deletions src/refline/srccheck/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class BaseChecker(object):
basename = None
error = None

ignorefile = "##srccheck_ignore_file"
ignoreline = "##srccheck_ignore"
ignorefile = "# srccheck_ignore_file"
ignoreline = "# srccheck_ignore"
linecomment = '#'

def log(self, lineidx=0, line=None, pos=None, noInfo=False):
Expand Down Expand Up @@ -161,7 +161,7 @@ def check(self, filename, content, lines):
if self.ignorefile:
if self.ignorefile in content:
return
if "##ignore PyflakesChecker##" in content:
if "# ignore PyflakesChecker #" in content:
return

content = self.fixcontent(lines)
Expand Down

0 comments on commit d37119f

Please sign in to comment.