PennLINC / luo_wm_dev

0 stars 0 forks source link

Run Python scripts through `black` and `isort` #2

Open tsalo opened 6 months ago

tsalo commented 6 months ago

The Python scripts have some odd formatting (e.g., switching between 4 and 8-space indents in the same file). Running black and isort should automatically resolve many style issues.

You can do this via the following:

pip install black isort -U

black /path/to/repo/
isort /path/to/repo/
mattcieslak commented 6 months ago

Is there a good pyproject.toml that we can recommend people copy into their repos for common configurations for black and isort?

tsalo commented 6 months ago

That definitely would be good to add to https://github.com/PennLINC/paper-template. I'm not aware of anything preexisting though.