spack/lib/spack
Tom Scogland 12eb4a146f
use module and package flags to get more correct mypy behavior (#21225)
The first of my two upstream patches to mypy landed in the 0.800 tag that was released this morning, which lets us use module and package parameters with a .mypy.ini file that has a files key. This uses those parameters to check all of spack in style, but leaves the packages out for now since they are still very, very broken. If no package has been modified, the packages are not checked, but if one has they are. Includes some fixes for the log tests since they were not type checking.

Should also fix all failures related to "duplicate module named package" errors.

Hopefully the next drop of mypy will include my other patch so we can just specify the modules and packages in the config file to begin with, but for now we'll have to live with a bare mypy doing a check of the libs but not the packages.

* use module and package flags to check packages properly
* stop checking package files, use package flag for libs

The packages are not type checkable yet, need to finish out another PR
before they can be.  The previous commit also didn't check the libraries
properly, this one does.
2021-01-22 16:24:15 -08:00
..
docs docs: Update the CudaPackage (build system) description (#20742) 2021-01-21 12:43:21 -08:00
env copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
external copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
llnl [WIP] relocate.py: parallelize test replacement logic (#19690) 2021-01-20 09:17:47 -08:00
spack use module and package flags to get more correct mypy behavior (#21225) 2021-01-22 16:24:15 -08:00