зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1784857 - Update to flake8 5.0.4 r=linter-reviewers,ahal
One of the argument has been renamed here:
8d3afe40e1
Depends on D154641
Differential Revision: https://phabricator.services.mozilla.com/D154642
This commit is contained in:
Родитель
e9eade44dc
Коммит
a516a4f498
|
@ -118,6 +118,7 @@ def lint(paths, config, **lintargs):
|
|||
|
||||
def run(paths, config, **lintargs):
|
||||
from flake8.main.application import Application
|
||||
from flake8 import __version__ as flake8_version
|
||||
|
||||
log = lintargs["log"]
|
||||
root = lintargs["root"]
|
||||
|
@ -125,7 +126,7 @@ def run(paths, config, **lintargs):
|
|||
|
||||
# Run flake8.
|
||||
app = Application()
|
||||
log.debug("flake8 version={}".format(app.version))
|
||||
log.debug("flake8 version={}".format(flake8_version))
|
||||
|
||||
output_file = mozfile.NamedTemporaryFile(mode="r")
|
||||
flake8_cmd = [
|
||||
|
@ -166,9 +167,11 @@ def run(paths, config, **lintargs):
|
|||
p for p in paths if not any(p.startswith(e) for e in config["exclude"])
|
||||
]
|
||||
|
||||
self.args = self.args + list(expand_exclusions(filtered, config, root))
|
||||
self.options.filenames = self.options.filenames + list(
|
||||
expand_exclusions(filtered, config, root)
|
||||
)
|
||||
|
||||
if not self.args:
|
||||
if not self.options.filenames:
|
||||
raise NothingToLint
|
||||
return orig_make_file_checker_manager()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
flake8==4.0.1
|
||||
flake8==5.0.4
|
||||
zipp==0.5
|
||||
autopep8==1.6.0
|
||||
autopep8==1.7.0
|
||||
typing-extensions==3.10.0.2
|
||||
|
|
|
@ -1,29 +1,30 @@
|
|||
#
|
||||
# This file is autogenerated by pip-compile with python 3.9
|
||||
# This file is autogenerated by pip-compile with python 3.10
|
||||
# To update, run:
|
||||
#
|
||||
# pip-compile --allow-unsafe --generate-hashes tools/lint/python/flake8_requirements.in
|
||||
# pip-compile --generate-hashes tools/lint/python/flake8_requirements.in
|
||||
#
|
||||
autopep8==1.6.0 \
|
||||
--hash=sha256:44f0932855039d2c15c4510d6df665e4730f2b8582704fa48f9c55bd3e17d979 \
|
||||
--hash=sha256:ed77137193bbac52d029a52c59bec1b0629b5a186c495f1eb21b126ac466083f
|
||||
flake8==4.0.1 \
|
||||
--hash=sha256:479b1304f72536a55948cb40a32dce8bb0ffe3501e26eaf292c7e60eb5e0428d \
|
||||
--hash=sha256:806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d
|
||||
autopep8==1.7.0 \
|
||||
--hash=sha256:6f09e90a2be784317e84dc1add17ebfc7abe3924239957a37e5040e27d812087 \
|
||||
--hash=sha256:ca9b1a83e53a7fad65d731dc7a2a2d50aa48f43850407c59f6a1a306c4201142
|
||||
# via -r tools/lint/python/flake8_requirements.in
|
||||
mccabe==0.6.1 \
|
||||
--hash=sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42 \
|
||||
--hash=sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f
|
||||
flake8==5.0.4 \
|
||||
--hash=sha256:6fbe320aad8d6b95cec8b8e47bc933004678dc63095be98528b7bdd2a9f510db \
|
||||
--hash=sha256:7a1cf6b73744f5806ab95e526f6f0d8c01c66d7bbe349562d22dfca20610b248
|
||||
# via -r tools/lint/python/flake8_requirements.in
|
||||
mccabe==0.7.0 \
|
||||
--hash=sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325 \
|
||||
--hash=sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e
|
||||
# via flake8
|
||||
pycodestyle==2.8.0 \
|
||||
--hash=sha256:720f8b39dde8b293825e7ff02c475f3077124006db4f440dcbc9a20b76548a20 \
|
||||
--hash=sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f
|
||||
pycodestyle==2.9.1 \
|
||||
--hash=sha256:2c9607871d58c76354b697b42f5d57e1ada7d261c261efac224b664affdc5785 \
|
||||
--hash=sha256:d1735fc58b418fd7c5f658d28d943854f8a849b01a5d0a1e6f3f3fdd0166804b
|
||||
# via
|
||||
# autopep8
|
||||
# flake8
|
||||
pyflakes==2.4.0 \
|
||||
--hash=sha256:05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c \
|
||||
--hash=sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e
|
||||
pyflakes==2.5.0 \
|
||||
--hash=sha256:4579f67d887f804e67edb544428f264b7b24f435b263c4614f384135cea553d2 \
|
||||
--hash=sha256:491feb020dca48ccc562a8c0cbe8df07ee13078df59813b83959cbdada312ea3
|
||||
# via flake8
|
||||
toml==0.10.2 \
|
||||
--hash=sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b \
|
||||
|
|
Загрузка…
Ссылка в новой задаче