Fix issues found by flake8

pull/3705/head
Xavier Claessens 7 years ago committed by Nirbheek Chauhan
parent b7d442150d
commit aa879b7f0c
  1. 2
      mesonbuild/backend/backends.py
  2. 2
      mesonbuild/compilers/__init__.py
  3. 2
      mesonbuild/compilers/c.py
  4. 1
      mesonbuild/compilers/compilers.py
  5. 1
      mesonbuild/compilers/cpp.py
  6. 2
      mesonbuild/compilers/fortran.py
  7. 1
      mesonbuild/mconf.py
  8. 2
      mesonbuild/modules/__init__.py
  9. 1
      mesonbuild/modules/gnome.py
  10. 2
      mesonbuild/scripts/meson_install.py
  11. 4
      setup.cfg

@ -21,7 +21,7 @@ from .. import compilers
import json import json
import subprocess import subprocess
from ..mesonlib import MesonException, OrderedSet from ..mesonlib import MesonException, OrderedSet
from ..mesonlib import get_compiler_for_source, classify_unity_sources from ..mesonlib import classify_unity_sources
from ..mesonlib import File from ..mesonlib import File
from ..compilers import CompilerArgs from ..compilers import CompilerArgs
from collections import OrderedDict from collections import OrderedDict

@ -41,6 +41,8 @@ __all__ = [
'sanitizer_compile_args', 'sanitizer_compile_args',
'sort_clike', 'sort_clike',
'ArmCCompiler',
'ArmCPPCompiler',
'CCompiler', 'CCompiler',
'ClangCCompiler', 'ClangCCompiler',
'ClangCompiler', 'ClangCompiler',

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import subprocess, os.path, tempfile import subprocess, os.path
from .. import mlog from .. import mlog
from .. import coredata from .. import coredata

@ -1281,7 +1281,6 @@ class ElbrusCompiler(GnuCompiler):
break break
return paths return paths
class ClangCompiler: class ClangCompiler:
def __init__(self, clang_type): def __init__(self, clang_type):
self.id = 'clang' self.id = 'clang'

@ -14,7 +14,6 @@
import os.path import os.path
from .. import mlog
from .. import coredata from .. import coredata
from ..mesonlib import version_compare from ..mesonlib import version_compare

@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import os.path, subprocess
from .c import CCompiler from .c import CCompiler
from .compilers import ( from .compilers import (
ICC_STANDARD, ICC_STANDARD,

@ -15,7 +15,6 @@
import os import os
import sys import sys
import argparse import argparse
import shlex
from . import (coredata, mesonlib, build) from . import (coredata, mesonlib, build)
def buildparser(): def buildparser():

@ -1,9 +1,7 @@
import os import os
from .. import build from .. import build
from .. import dependencies
from .. import mlog from .. import mlog
from ..mesonlib import MesonException
class permittedSnippetKwargs: class permittedSnippetKwargs:

@ -1382,7 +1382,6 @@ G_END_DECLS'''
build_dir = os.path.join(state.environment.get_build_dir(), state.subdir) build_dir = os.path.join(state.environment.get_build_dir(), state.subdir)
source_dir = os.path.join(state.environment.get_source_dir(), state.subdir) source_dir = os.path.join(state.environment.get_source_dir(), state.subdir)
pkg_cmd, vapi_depends, vapi_packages, vapi_includes = self._extract_vapi_packages(state, kwargs) pkg_cmd, vapi_depends, vapi_packages, vapi_includes = self._extract_vapi_packages(state, kwargs)
target_name = 'generate_vapi({})'.format(library)
if 'VAPIGEN' in os.environ: if 'VAPIGEN' in os.environ:
cmd = [self.interpreter.find_program_impl(os.environ['VAPIGEN'])] cmd = [self.interpreter.find_program_impl(os.environ['VAPIGEN'])]
else: else:

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import sys, pickle, os, shutil, subprocess, gzip, platform, errno import sys, pickle, os, shutil, subprocess, gzip, errno
import shlex import shlex
from glob import glob from glob import glob
from . import depfixer from . import depfixer

@ -20,4 +20,8 @@ ignore =
E402, E402,
# E731: do not assign a lambda expression, use a def (too many false positives) # E731: do not assign a lambda expression, use a def (too many false positives)
E731 E731
# E741: ambiguous variable name 'l'
E741
# E722: do not use bare except'
E722
max-line-length = 120 max-line-length = 120

Loading…
Cancel
Save