-
Notifications
You must be signed in to change notification settings - Fork 334
Closed
Labels
bugsomething is working incorrectlysomething is working incorrectlycode healthimproving internal code structure to make easier to maintain (sustainability)improving internal code structure to make easier to maintain (sustainability)
Description
Brief summary of bug
Running "make black" in the python directory shows one file needs to be run through black.
General bug information
CTSM version you are using: ctsm5.1.dev131 and after
Does this bug cause significantly incorrect results in the model's science? No
Configurations affected: Not really anything just black formatting of one file
Details of bug
This wasn't caught partially because the "check black" github action wasn't checking all directories just the python directory.
Important details of your setup / configuration so we can reproduce the bug
You have to run this with the ctsm_pylib conda environment to make sure you have the standard version of black and python.
Important output or errors that show the problem
make black
black --check --config pyproject.toml . ../cime_config/SystemTests ../cime_config/buildlib ../cime_config/buildnml
would reformat ../cime_config/SystemTests/rxcropmaturity.py
Oh no! 💥 💔 💥
1 file would be reformatted, 85 files would be left unchanged.
Makefile:53: recipe for target 'black' failed
make: *** [black] Error 1
Definition of Done:
- Run through black
- Add commit to the git blame ignore file
- Add the other directory to the github action as it is now
Metadata
Metadata
Assignees
Labels
bugsomething is working incorrectlysomething is working incorrectlycode healthimproving internal code structure to make easier to maintain (sustainability)improving internal code structure to make easier to maintain (sustainability)