5 ms·
I've recently started using Make for my Python project as a convenient way of running arbitrary code checks. I like having targets like the following: test - r
by joshmarlow 6y ago
I've recently started using Make for my Python project as a convenient way of running arbitrary code checks. I like having targets like the following:
test - runs pytest with whatever config flags are needed
coverage - run test and then check for minimum code coverage
run - run the application with sane defaults
mypy - does type checking (mypy)
lint - run flake8
And I usually have `make all` setup to run everything (static analysis before tests, then code coverage checks).
In another project, I built out some testing infrastructure for a Rust project (setting up a testing database and tearing it down at the end).
I sometimes feel like I "should" use a dedicated tool for this, but Make is ubiquitous and easy enough to use for simple use cases like this.