(args)
| 106 | |
| 107 | |
| 108 | def format_(args): |
| 109 | if not can_run("black", "--version"): |
| 110 | sys.exit( |
| 111 | "Formatting requires the Black formatter (https://github.com/psf/black)" |
| 112 | ) |
| 113 | |
| 114 | run("cargo", "fmt") |
| 115 | |
| 116 | for manifest in gen_examples("Cargo.toml"): |
| 117 | run("cargo", "fmt", "--manifest-path", manifest) |
| 118 | |
| 119 | run("black", ".") |
| 120 | |
| 121 | |
| 122 | def prune(args): |
no test coverage detected