(*args: str)
| 30 | |
| 31 | |
| 32 | def run_black(*args: str) -> None: |
| 33 | with filtered_stream( |
| 34 | exclude=r"DEPRECATION: Python 2 support will be removed in the first stable release", |
| 35 | dest=sys.stdout, |
| 36 | ) as out_fd: |
| 37 | subprocess.run( |
| 38 | args=[ |
| 39 | "black", |
| 40 | "--color", |
| 41 | *args, |
| 42 | "build-backend", |
| 43 | "docs", |
| 44 | "package", |
| 45 | "pex", |
| 46 | "scripts", |
| 47 | "setup.py", |
| 48 | "testing", |
| 49 | "tests", |
| 50 | ], |
| 51 | stdout=out_fd, |
| 52 | stderr=subprocess.STDOUT, |
| 53 | encoding="utf-8", |
| 54 | check=True, |
| 55 | ) |
| 56 | subprocess.run( |
| 57 | args=[ |
| 58 | "black", |
| 59 | "--color", |
| 60 | "--target-version", |
| 61 | "py310", |
| 62 | *args, |
| 63 | "docker", |
| 64 | ], |
| 65 | stdout=out_fd, |
| 66 | stderr=subprocess.STDOUT, |
| 67 | encoding="utf-8", |
| 68 | check=True, |
| 69 | ) |
| 70 | |
| 71 | |
| 72 | def run_isort(*args: str) -> None: |
no test coverage detected