-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #374 from bashtage/restore-mode
Restore mode
- Loading branch information
Showing
38 changed files
with
405 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
scanner: | ||
diff_only: False | ||
linter: flake8 # Other option is flake8 | ||
linter: pycodestyle # Other option is flake8 | ||
|
||
pycodestyle: # Same as scanner.linter value. Other option is flake8 | ||
max-line-length: 99 # Default is 79 in PEP 8 | ||
ignore: # Errors and warnings to ignore | ||
- E203 # Whitespace before ':' | ||
- W503 # Line break occurred before a binary operator (W503) | ||
- E301 | ||
- E302 | ||
- E305 | ||
- E501 | ||
- E701 | ||
|
||
no_blank_comment: False # If True, no comment is made on PR without any errors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
class _DeprecatedValueType: | ||
"""Special keyword value for deprecated arguments.. | ||
The instance of this class may be used as the default value assigned to a | ||
keyword if the parameter is deprecated. | ||
""" | ||
|
||
__instance = None | ||
|
||
def __new__(cls): | ||
# ensure that only one instance exists | ||
if not cls.__instance: | ||
cls.__instance = super().__new__(cls) | ||
return cls.__instance | ||
|
||
def __repr__(self): | ||
return "<deprecated>" | ||
|
||
|
||
_DeprecatedValue = _DeprecatedValueType() | ||
|
||
__all__ = ["_DeprecatedValue"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.