Skip to content
Snippets Groups Projects
Commit a0c63e0d authored by Amir Rachum's avatar Amir Rachum Committed by GitHub
Browse files

Merge pull request #288 from FarmerSez/remove-D107-from-numpy

#273 - Removing D107 from numpy default violations
parents 4af535f8 020d8681
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -30,6 +30,7 @@ Bug Fixes
(#258, #264).
* Configuration files that were specified by CLI and don't contain a valid
section name will now issue a warning to ``stderr`` (#276, #280).
* Removed D107 from the numpy convention (#288).
 
 
2.0.0 - April 18th, 2017
Loading
Loading
Loading
Loading
@@ -242,5 +242,5 @@ conventions = AttrDict({
'pep257': all_errors - {'D203', 'D212', 'D213', 'D214', 'D215', 'D404',
'D405', 'D406', 'D407', 'D408', 'D409', 'D410',
'D411'},
'numpy': all_errors - {'D203', 'D212', 'D213', 'D402', 'D413'}
'numpy': all_errors - {'D107', 'D203', 'D212', 'D213', 'D402', 'D413'}
})
Loading
Loading
@@ -607,11 +607,14 @@ def test_numpy_convention(env):
returns
------
"""
def __init__(self):
pass
'''))
 
env.write_config(convention="numpy")
out, err, code = env.invoke()
assert code == 1
assert 'D107' not in out
assert 'D213' not in out
assert 'D215' in out
assert 'D405' in out
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment