LLNL / ATS

ATS - Automated Testing System - is an open-source, Python-based tool for automating the running of tests of an application across a broad range of high performance computers.
BSD 3-Clause "New" or "Revised" License
7 stars 5 forks source link

add black and isort formatters #91

Closed davidbloss closed 2 years ago

davidbloss commented 2 years ago

Introducing the atsformat command. atsformat uses black and isort to format python files. One initial setback with black was its insistence on converting #ATS: to # ATS: that breaks the code. So atsformat lets black do this and later reverts # ATS: back to #ATS: - same for #BATS:.

By default, black and isort are not installed but developers can include these during the ATS installation \ by adding "[dev]" like this: pip install <path to ATS>"[dev]"