Skip to content

Optimise fortran linting workflow using uv - #40

Merged
James Bruten (james-bruten-mo) merged 19 commits into
MetOffice:mainfrom
Pierre-siddall:optimise-fortran-linting
Dec 9, 2025
Merged

Optimise fortran linting workflow using uv #40
James Bruten (james-bruten-mo) merged 19 commits into
MetOffice:mainfrom
Pierre-siddall:optimise-fortran-linting

Conversation

@Pierre-siddall

Copy link
Copy Markdown
Contributor

Fixes #30

@Pierre-siddall

Copy link
Copy Markdown
Contributor Author

Tested using no fortran code to see if the uv cache minimization step ran then added some fortran code and tested using additional rules to a fortitude.toml file contained in a local repository. Workflow ran smoothly in all cases and threw the correct errors in the right places.

Comment thread .github/workflows/fortran-lint.yaml Outdated

@yaswant Yaswant Pradhan (yaswant) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pierre Siddall (@Pierre-siddall) there are some fundamental problems in the implementation - I feel that you are trying to over-engineer. See my suggestions and comments.

Comment thread .github/workflows/fortran-lint.yaml Outdated
Comment thread .github/workflows/fortran-lint.yaml Outdated
Comment thread .github/workflows/fortran-lint.yaml Outdated
Comment thread .github/workflows/fortran-lint.yaml Outdated
Comment thread .github/workflows/fortran-lint.yaml Outdated
@Pierre-siddall
Pierre Siddall (Pierre-siddall) marked this pull request as draft November 27, 2025 08:40
Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com>
Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com>
Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com>
Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com>
Comment thread .github/workflows/fortran-lint.yaml Outdated

@yaswant Yaswant Pradhan (yaswant) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of minor naming suggestions so that the items dont appears repeatedly on PR Checks section.

Comment thread .github/workflows/fortran-lint.yaml Outdated
Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com>
Comment thread .github/workflows/fortran-lint.yaml Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion for some other lfric file extensions

Comment thread .github/workflows/fortran-lint.yaml Outdated
Co-authored-by: James Bruten <109733895+james-bruten-mo@users.noreply.github.com>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Pierre, looks good

@james-bruten-mo
James Bruten (james-bruten-mo) merged commit 39a423c into MetOffice:main Dec 9, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimise Fortran Linting workflow

3 participants