UM code-styling script broken? #593
Replies: 2 comments 12 replies
-
|
Hi Mike, Yes, sorry, this is something that's been missed in the git migration. # Move to the fixer scripts location
cd $UMDIR/SimSys_Scripts/umdp3_fixer
# Run the rosestem_branch_checker which takes a directory and checks all files within there
./rosestem_branch_checker.py --fixer_source . --source /path/to/um/cloneThe rosestem_branch_checker will take some time as it checks all files - unfortunately it was written just for rose-stem and so assumes it's checking from the top of the file tree. Cheers |
Beta Was this translation helpful? Give feedback.
-
|
Hi Mike,
Are you thinking of SimSys_Scripts/lfric_styling/lfric_styling.py? If so its worth noting that these are quite different scripts. The LFRic one just lower-cases the intrinsic names and is there to aid people copying code from the UM into LFRic. It doesn't apply a full styling. Cheers |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Does anyone know a way to run the UM code-styling script in a git branch?
In UM fcm branches this can still be run as:
But this fails if you run it in a git clone. The UM styling script decides which files to apply to by running fcm commands to see which files your branch has modified. Obviously that doesn't work in a git clone (it just complains mournfully that the current directory doesn't appear to be a valid working copy...)
Any chance the UM styling script can be changed so it works like the lfric_apps one? (where you just specify the directory you want to apply it to, instead if it trying to do something clever to work out which files to re-style).
Cheers!
Mike
Beta Was this translation helpful? Give feedback.
All reactions