mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 07:14:18 +00:00
Add disable_noqa attribute to FileProcessor
This commit is contained in:
parent
19868e5c21
commit
9a45593aae
1 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ class FileProcessor(object):
|
||||||
- :attr:`blank_before`
|
- :attr:`blank_before`
|
||||||
- :attr:`blank_lines`
|
- :attr:`blank_lines`
|
||||||
- :attr:`checker_state`
|
- :attr:`checker_state`
|
||||||
|
- :attr:`disable_noqa`
|
||||||
- :attr:`indent_char`
|
- :attr:`indent_char`
|
||||||
- :attr:`indent_level`
|
- :attr:`indent_level`
|
||||||
- :attr:`line_number`
|
- :attr:`line_number`
|
||||||
|
|
@ -77,6 +78,8 @@ class FileProcessor(object):
|
||||||
self._checker_states = {} # type: Dict[str, Dict[Any, Any]]
|
self._checker_states = {} # type: Dict[str, Dict[Any, Any]]
|
||||||
#: Current checker state
|
#: Current checker state
|
||||||
self.checker_state = {} # type: Dict[Any, Any]
|
self.checker_state = {} # type: Dict[Any, Any]
|
||||||
|
#: Disable all noqa comments
|
||||||
|
self.disable_noqa = options.disable_noqa # type: bool
|
||||||
#: User provided option for hang closing
|
#: User provided option for hang closing
|
||||||
self.hang_closing = options.hang_closing
|
self.hang_closing = options.hang_closing
|
||||||
#: Character used for indentation
|
#: Character used for indentation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue