File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ disable=duplicate-code, # pylint-file-header: Fails in unit tests
62
62
missing-docstring, # pylint-file-header: Add DOCSTRINGS only where helpful
63
63
relative-import, # pylint-file-header: ignore for unit tests
64
64
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
66
67
67
68
# Enable the message, report, category or checker with the given id(s). You can
68
69
# either give multiple identifier separated by comma (,) or put this option
Original file line number Diff line number Diff line change @@ -57,15 +57,16 @@ class FileHeaderChecker(BaseChecker):
57
57
)
58
58
59
59
def __init__ (self , linter = None ):
60
+ # pylint: disable=super-with-arguments
60
61
super (FileHeaderChecker , self ).__init__ (linter = linter )
61
62
self .pattern = None
62
63
self .header = None
63
64
64
65
def open (self ):
65
66
self .header = self .config .file_header
66
67
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 ()
69
70
70
71
if self .header :
71
72
if sys .version_info [0 ] < 3 :
You can’t perform that action at this time.
0 commit comments