summaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/depscan.py
Commit message (Collapse)AuthorAgeFilesLines
* fix various flake8 whitespace errorsEli Schwartz2021-10-271-1/+1
|
* fix extra whitespaceEli Schwartz2021-10-041-1/+0
| | | | discovered via flake8 --select E303
* various python neatness cleanupsEli Schwartz2021-10-041-1/+1
| | | | | | | | | | | | | | | | All changes were created by running "pyupgrade --py3-only" and committing the results. Although this has been performed in the past, newer versions of pyupgrade can automatically catch more opportunities, notably list comprehensions can use generators instead, in the following cases: - unpacking into function arguments as function(*generator) - unpacking into assignments of the form x, y = generator - as the argument to some builtin functions such as min/max/sorted Also catch a few creeping cases of new code added using older styles.
* pylint: turn on superflous-parensDylan Baker2021-08-311-2/+2
| | | | | | | | We have a lot of these. Some of them are harmless, if unidiomatic, such as `if (condition)`, others are potentially dangerous `assert(...)`, as `assert(condtion)` works as expected, but `assert(condition, message)` will result in an assertion that never triggers, as what you're actually asserting is `bool(tuple[2])`, which will always be true.
* backends/ninja: write depscan input files to jsonDylan Baker2021-08-181-4/+6
| | | | | | | | | | | | | | Currently, we write each file to the command line, but this can result in situations where the number of files passed exceeds OS imposed command line limits. For compilers, we solve this with response files. For depscan I've chosen to use a JSON list instead. JSON has several advantages in that it's standardized, there's a built-in python module for it, and it's familiar. I've also chosen to always use the JSON file instead of having a heuristic to decide between JSON and not JSON, while there may be a small performance trade off here, keeping the implementation simple with only one path is wort it. Fixes #9129
* fix: Always explicitly set encoding for text files (fixes #8263)Daniel Mensinger2021-06-291-3/+3
|
* mass rewrite of string formatting to use f-strings everywhereEli Schwartz2021-03-041-5/+5
| | | | performed by running "pyupgrade --py36-plus" and committing the results
* raw string literals are next to godlinessEli Schwartz2021-03-041-2/+2
| | | | | | Invalid escape sequences are deprecated and will be removed from a future version of python. Use r"" to define them so they remain readable.
* Use case-insensitive suffix check for fortranJonas Lundholm Bertelsen2021-01-201-2/+2
| | | | | | | | | | In Fortran it is common to use capital F in the suffix (eg. '.F90') if the source file makes use of preprocessor statements. Such files should probably be treated like all other fortran files by meson. Case insensitivity for suffixes was already implemented several places in meson before this. So most likely, the few places changed here were oversights anyway.
* Fix misspellsAntonin Décimo2021-01-131-1/+1
| | | | Signed-off-by: Antonin Décimo <antonin.decimo@gmail.com>
* Extend the C++ module scanner to handle Fortran, too.Jussi Pakkanen2020-12-251-19/+129
|
* Add mypy annotations.cppmodulesJussi Pakkanen2020-12-131-11/+13
|
* Scan all C++ sources and ignore everything else.Jussi Pakkanen2020-12-131-0/+2
|
* C++ module compilation works for a simple project.Jussi Pakkanen2020-12-131-0/+87