Statue is an orchestration tool for static code analysis. It combines the overall power of several linters and formatters into one consistent tool that prevents unwanted conflicts. With Statue you can integrate tools such as mypy, pylint, black, isort and many others.
In order to install Statue, run:
pip install statue
In order to run Statue over a source folder src
with standard context, run:
statue run src
Run Statue in specific contexts in order to evaluate different files in various ways. For example, run Statue over a unit tests folder with the "test" context:
statue run unit_tests --context=test
Add a configuration file in order let statue know how to evaluate your code. simply add a statue.toml file to your repository's root directory. Here's an example file:
[sources.src]
[sources.tests]
contexts = ["test"]
Now you can simply run statue run
and Statue will evaluate you repository without
contexts problems.
If you experience problems with Statue, log them on GitHub.
If you want to contribute code, please fork the code and submit a pull request.