Commit Graph

7 Commits

Author SHA1 Message Date
Xavier Claessens 2dfd952eb9 Move classes used by scripts to their own module
Those classes are used by wrapper scripts and we should not have to
import the rest of mesonlib, build.py, and all their dependencies for
that.

This renames mesonlib/ directory to utils/ and add a mesonlib.py module
that imports everything from utils/ to not have to change `import
mesonlib` everywhere. It allows to import utils.core without importing
the rest of mesonlib.
2022-09-28 19:36:13 -04:00
Eli Schwartz 996d471f5f
flake8: squelch warnings for star imports even harder
mesonbuild.mesonlib is gathering its submodules into one module. We
suppressed one warning for it, but another one cropped up instead.
2022-02-16 18:19:13 -05:00
Eli Schwartz c582abbbcf
flake8: extend the ignore list, do not override
Some things are disabled by default because most people are not
interested in them. But (non-obviously) adding a list of ignores to the
flake8 configuration file will actually turn back on anything you didn't
explicitly specify.

This reduces the number of flake8 warnings by about 100, a vast chunk of
which are

E704 multiple statements on one line (def)

which turn out to actually be T.overload or typing definitions with

def func(): ...

which is understandably quite reasonable to permit.
2021-10-04 16:29:31 -04:00
Eli Schwartz 87e13af1c8
apply flake8 fixes for unused imports and missing imports 2021-09-14 15:55:07 -04:00
Luke Drummond 63814543de Bare exceptions are no longer allowed [NFC]
The last instances of

    try:
        ...
    except:
        ...

were removed in bf98ffca. The sideci.yml file was updated, but the
flake8 config still allows this. Ensure that flake8 tests fail if this
questionable construct appears again.
2020-11-04 12:24:48 +02:00
Michael Hirsch, Ph.D 6727e5f5ad add missing commas 2019-07-11 22:37:25 +03:00
Michael Hirsch, Ph.D 4b9625ac06 ENH: metadata PEP390 setup.cfg
https for Meson docs url

Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com>
2019-07-11 22:37:25 +03:00