mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 10:46:54 +00:00
Default hg ignore config to empty instead of None
Setting it to None is interpreted as the string 'None', which does the wrong thing. Setting it to the empty string gives the right behaviour and allows overriding in config files.
This commit is contained in:
parent
19252c0404
commit
39e60d4254
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ def _install_hg_hook(path):
|
|||
c.set('flake8', 'strict', os.getenv('FLAKE8_STRICT', False))
|
||||
|
||||
if not c.has_option('flake8', 'ignore'):
|
||||
c.set('flake8', 'ignore', os.getenv('FLAKE8_IGNORE'))
|
||||
c.set('flake8', 'ignore', os.getenv('FLAKE8_IGNORE', ''))
|
||||
|
||||
if not c.has_option('flake8', 'lazy'):
|
||||
c.set('flake8', 'lazy', os.getenv('FLAKE8_LAZY', False))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue