Bump hacking
hacking 3.0.x is too old. This also removes the note about old behavior of pip which has been changed in recent versions. Notes: - A few errors newly detected are also fixed. - This also fixes the compatibility with flake8 >= 3.0 because flake8 is also bumped when we bump hacking. Change-Id: I7fa87ed77bb39945ee5464692b7ef3d25c046127
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
import re
|
||||
|
||||
from hacking import core
|
||||
import pycodestyle
|
||||
|
||||
# D701: Default parameter value is a mutable type
|
||||
# D702: Log messages require translation
|
||||
@@ -49,8 +48,8 @@ no_line_continuation_backslash_re = re.compile(r'.*(\\)\n')
|
||||
|
||||
|
||||
@core.flake8ext
|
||||
def mutable_default_arguments(physical_line, logical_line, filename):
|
||||
if pycodestyle.noqa(physical_line):
|
||||
def mutable_default_arguments(logical_line, filename, noqa):
|
||||
if noqa:
|
||||
return
|
||||
|
||||
if mutable_default_argument_check.match(logical_line):
|
||||
|
@@ -2,9 +2,6 @@
|
||||
# date but we do not test them so no guarantee of having them all correct. If
|
||||
# you find any incorrect lower bounds, let us know or propose a fix.
|
||||
|
||||
# The order of packages is significant, because pip processes them in the order
|
||||
# of appearance. Changing the order has an impact on the overall integration
|
||||
# process, which may cause wedges in the gate later.
|
||||
cliff!=2.9.0,>=2.8.0 # Apache-2.0
|
||||
jsonschema>=3.2.0 # MIT
|
||||
osc-lib>=1.8.0 # Apache-2.0
|
||||
|
@@ -1,8 +1,5 @@
|
||||
# The order of packages is significant, because pip processes them in the order
|
||||
# of appearance. Changing the order has an impact on the overall integration
|
||||
# process, which may cause wedges in the gate later.
|
||||
# Hacking already pins down pep8, pyflakes and flake8
|
||||
hacking>=3.0.1,<3.1.0 # Apache-2.0
|
||||
hacking>=6.1.0,<6.2.0 # Apache-2.0
|
||||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
oslo.config>=5.2.0 # Apache-2.0
|
||||
oslotest>=3.2.0 # Apache-2.0
|
||||
|
Reference in New Issue
Block a user