Skip to content

Commit f04904f

Browse files
author
Sergey Vilgelm
committed
fix lint issues
1 parent c1f6d5d commit f04904f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.pylintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ disable=duplicate-code, # pylint-file-header: Fails in unit tests
6262
missing-docstring, # pylint-file-header: Add DOCSTRINGS only where helpful
6363
relative-import, # pylint-file-header: ignore for unit tests
6464
redefined-outer-name, # pylint-file-header: conflicts with pytest fixtures
65-
too-few-public-methods # pylint-file-header: know what you are doing
65+
too-few-public-methods, # pylint-file-header: know what you are doing
66+
bad-option-value # pylint-file-header: conflict with super-with-arguments in py34
6667

6768
# Enable the message, report, category or checker with the given id(s). You can
6869
# either give multiple identifier separated by comma (,) or put this option

pylintfileheader/file_header_checker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,16 @@ class FileHeaderChecker(BaseChecker):
5757
)
5858

5959
def __init__(self, linter=None):
60+
# pylint: disable=super-with-arguments
6061
super(FileHeaderChecker, self).__init__(linter=linter)
6162
self.pattern = None
6263
self.header = None
6364

6465
def open(self):
6566
self.header = self.config.file_header
6667
if not self.header and self.config.file_header_path:
67-
with open(self.config.file_header_path, 'r') as f:
68-
self.header = f.read()
68+
with open(self.config.file_header_path, 'r') as header_file:
69+
self.header = header_file.read()
6970

7071
if self.header:
7172
if sys.version_info[0] < 3:

0 commit comments

Comments
 (0)