-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linter CI part 1 #52
base: main
Are you sure you want to change the base?
Linter CI part 1 #52
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor changes in ruff.toml
|
@james-bruten-mo Don't think there is anyway to override black defaults for SuperLinter. I see now SciTools/iris switched from black to ruff. So there must be a way AVD use the tool. I take the message that if you prefer black, then just don't try to override defaults via command-line. |
This is now ready for review and merge. @Pierre-siddall you can step away from the PR for now, but FYI we have disabled ruff in the workflow which will be revisited in later. Requesting reviews from:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just used this branch for the kgo install I've been doing today. This highlighted a couple of issues:
- The xc40's require scitools in order to have python3 available - this causes f-string issues when running kgo_update.py - I think we can just add
module load scitools
to the command in the new function as there's no problem with having it loaded on other platforms. - The new printf syntax doesn't colour the strings correctly - instead it just prints out the colour code string. I tested Sams fix from Fix UMDP3 checker linting issues #53 which is to use
echo -ne
instead and that seems to work so suggest we go with that? I highlighted the locations inmeto_run_kgo_script.sh
but not inmeto_update_kgo.sh
.
Cheers
@yaswant gotcha I'll step back from checking this out and focus on other stuff. |
I've had another go at installing kgo with this branch and hit issues again. |
I've reverted the script back to the way it was before with fixes against shellcheck. Please give it another go. |
I've tested again and the printf statements with the colour codes at the end don't colour the line correctly. I've reverted these and added the relevant shellcheck ignores if that's an acceptable way to go? |
Description
Summary
Code linting via Super-Linter GitHub Action
Changes
Added
workflow/lint.yml
linters/
CODEOWNERS
, currently @ssdteam but we can revisit and include individuals for each component in a separate PRDependency
None.
Impact
Automatic checks to assist code review
Issues addressed
Resolves
#51
Coordinated merge
NA
Checklist