summaryrefslogtreecommitdiff
path: root/run_mypy.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9623 from dcbaker/submit/keyval-typeingJussi Pakkanen2021-11-281-0/+1
|\ | | | | Add type annotations and typed_pos_args to the keyval module
| * run_mypy: add modules/keyvalDylan Baker2021-11-231-0/+1
| |
* | Add typing to msubprojects.pyTristan Partin2021-11-281-0/+1
|/
* modules/windows: use typed_kwargsDylan Baker2021-10-091-0/+1
|
* run_mypy: Add the external_project_moduleDylan Baker2021-10-041-0/+1
|
* docs: Initial reference manual generatorDaniel Mensinger2021-10-031-1/+3
|
* modules/i18n: Fix remaining mypy spotted issuesDylan Baker2021-09-301-1/+2
|
* interpreter/mesonmain: Fix remaining typing problems and add to run_mypyDylan Baker2021-09-241-0/+1
|
* interpreter: Add IntegerHolderDaniel Mensinger2021-08-311-0/+1
|
* Add Java moduleTristan Partin2021-08-221-0/+1
| | | | | The Java module will serve as a source for easing Java development within Meson. Currently it only supports generating native header files.
* run_mypy: add backends/backendsDylan Baker2021-08-201-0/+1
|
* run_mypy: add interpreter/compiler.pyDylan Baker2021-08-161-0/+1
|
* run_mypy: Add interpreter/type_checking to the list of checked modulesDylan Baker2021-08-041-0/+1
|
* tests: test that we always set encodingDaniel Mensinger2021-06-291-1/+1
|
* fix: Always explicitly set encoding for text files (fixes #8263)Daniel Mensinger2021-06-291-0/+1
|
* linkers: move linkers.py into the linkers packageDaniel Mensinger2021-06-251-1/+1
|
* holders: Fix the remaining code to respect the holder changesDaniel Mensinger2021-06-181-1/+2
|
* Merge pull request #8822 from dcbaker/submit/annotate-and-check-qt-moduleJussi Pakkanen2021-06-161-0/+1
|\ | | | | Rewrite the Qt module for type safety!
| * modules/qt: fix remaining typing issues and add to run_mypyDylan Baker2021-06-151-0/+1
| | | | | | | | | | This just ignores the fact taht Generator is unchecked. Generator needs some real love in terms of type checking.
* | run_mypy: lower required version to 0.812Dylan Baker2021-06-131-2/+2
|/ | | | | I've run this against Meson and it has no spurious errors. I suspect that all versions >= .8 are fine, but I didn't test those.
* run_mypy: Check mypy version to avoid spurious errorsXavier Claessens2021-06-111-0/+6
|
* interpreter: Move interpreterbase.py into a new packageDaniel Mensinger2021-06-111-1/+1
|
* typing: Fully annotate run_project_tests.pyDaniel Mensinger2021-06-091-0/+1
|
* typing: Fully annotate dependenciesDaniel Mensinger2021-06-091-16/+1
|
* typing: Fully annotate dependencies.frameworkDaniel Mensinger2021-06-061-0/+1
|
* typing: Fully annotate dependencies.{detect,factory} + some other fixesDaniel Mensinger2021-06-061-0/+3
|
* typing: Fully annotate dependencies.cmakeDaniel Mensinger2021-06-061-0/+1
|
* typing: Fully annotate dependencies.platformDaniel Mensinger2021-06-061-0/+1
|
* typing: Fully annotate dependencies.dubDaniel Mensinger2021-06-061-0/+1
|
* typing: Fully annotate dependencies.pkgconfigDaniel Mensinger2021-06-061-0/+1
|
* typing: Fully annotate dependencies.cudaDaniel Mensinger2021-06-051-0/+1
|
* typing: Fully annotate dependencies.configtoolDaniel Mensinger2021-06-051-0/+1
|
* typing: Fully annotate dependencies.coarraysDaniel Mensinger2021-06-051-0/+1
|
* typing: Fully annotate dependencies.baseDaniel Mensinger2021-06-031-0/+1
|
* dependencies/qt: Add type annotationsDylan Baker2021-03-221-0/+1
| | | | And fix some style and correctness issues
* programs: add type annotationsDylan Baker2021-03-191-0/+1
|
* Add `meson devenv` command and meson.add_devenv()Xavier Claessens2021-03-161-0/+1
|
* add a script to run a single testDylan Baker2021-02-231-0/+1
| | | | | | | | | | | | | | | | | As a Meson developer it's often frustrating to have a single functional test with a regression. These tests can be awkward to reproduce, especially when they make use of a test.json file. This script provides a simmple interface to call functional tests 1 at a time, regardless of whether they use a test.json or not. If they do use a test.json, and have a matrix, then the `--subtest` option can be used to select spcific combinations, for example: ```sh ./run_single_test.py "test cases/frameworks/15 llvm" --subtest 1 ``` will run only the second (zero indexed of course) subtest from the llvm test cases. This is not a super elegent script, but this is super useful.
* split mesonlib into a packageDylan Baker2021-01-231-4/+11
| | | | | | | | | | | | | | | | | | Currently mesonlib does some import tricks to figure out whether it needs to use windows or posix specific functions. This is a little hacky, but works fine. However, the way the typing stubs are implemented for the msvcrt and fnctl modules will cause mypy to fail on the other platform, since the functions are not implemented. To aleviate this (and for slightly cleaner design), I've split mesonlib into a pacakge with three modules. A universal module contains all of the platform agnositc code, a win32 module contains window specific code, a posix module contains the posix specific code, and a platform module contains no-op implementations. Then the package's __init__ file imports all of the universal functions and all of the functions from the approriate platform module, or the no-op versions as fallbacks. This makes mypy happy, and avoids `if`ing all over the code to switch between the platform specific code.
* run_mypy: add minstallDylan Baker2021-01-131-0/+1
|
* modules: Add an unstable-rust moduleDylan Baker2021-01-051-0/+1
| | | | | | | | | | | | | | | | | | Like other language specific modules this module is module for holding rust specific helpers. This commit adds a test() function, which simplifies using rust's internal unittest mechanism. Rust tests are generally placed in the same code files as they are testing, in contrast to languages like C/C++ and python which generally place the tests in separate translation units. For meson this is somewhat problematic from a repetition point of view, as the only changes are generally adding --test, and possibly some dependencies. The rustmod.test() method provides a mechanism to remove the repatition: it takes a rust target, copies it, and then addes the `--test` option, then creates a Test() target with the `rust` protocol. You can pass additional dependencies via the `dependencies` keyword. This all makes for a nice, DRY, test definition.
* Merge pull request #8010 from dcbaker/submit/optinterpreter-cleanupsJussi Pakkanen2020-11-221-0/+1
|\ | | | | Opt Interpreter cleanups and type annotations
| * Add type annotations to optinterpreterDylan Baker2020-11-201-0/+1
| |
* | use real pathlib moduleDylan Baker2020-11-201-1/+0
|/ | | | | We added the _pathlib module to work around defeciencies in python 3.5's implementation, since we now rely on 3.6 lets drop this
* pathlib: Fix resolve() by overriding it in Python 3.5Daniel Mensinger2020-10-041-0/+1
|
* run_mypy: mark the whole compilers package as type safeDylan Baker2020-10-011-14/+1
|
* compilers/d: add type annotationsDylan Baker2020-10-011-0/+1
|
* compilers/fortran: add type annotationsDylan Baker2020-10-011-0/+1
|
* compilers/java: Add type annotationsDylan Baker2020-10-011-0/+1
|
* compilers/rust: add type annotationsDylan Baker2020-10-011-0/+1
|