Skip to content

test(pre-commit): exclude gen-project artefact failures we cannot control - #265

Open
noelmcloughlin wants to merge 1 commit into
linkml:mainfrom
noelmcloughlin:precommit
Open

test(pre-commit): exclude gen-project artefact failures we cannot control#265
noelmcloughlin wants to merge 1 commit into
linkml:mainfrom
noelmcloughlin:precommit

Conversation

@noelmcloughlin

Copy link
Copy Markdown

This PR is to stop CI failures for gen-project generated output (which linkml-model does not control):

Excluded quality hooks:

  • end-of-file-fixer
  • trailing-whitespaces

Excluded generated content:

  • excel/ graphql/ jsonld/ jsonschema/ owl/ prefixmap/ protobuf/ rdf/ shacl/ shex/ sqlddl/ sqlschema/
  • annotations array datasets extensions mappings meta types units validation .py

See: https://github.com/linkml/linkml-model/actions/runs/30282095966/job/90030765962

@noelmcloughlin noelmcloughlin self-assigned this Jul 27, 2026
@noelmcloughlin noelmcloughlin changed the title test(pre-commit): exclude gen-project artefacts failures we cannot control test(pre-commit): exclude gen-project artefact failures we cannot control Jul 27, 2026
Comment thread .pre-commit-config.yaml Outdated
Comment thread .pre-commit-config.yaml
exclude: |
(?x)^linkml_model/(
(excel|graphql|jsonld|jsonschema|owl|prefixmap|protobuf|rdf|shacl|shex|sqlddl|sqlschema)/
|(annotations|array|datasets|extensions|mappings|meta|types|units|validation)\.py$

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hand edited list will silently drift as new generators are added. Not a blocker for me, just noting this in case you can think of a guard.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Nothing comes to mind with current layout - include vs exclude list is needed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

np. I was thinking maybe its possible to pull a generator list from somewhere and expand it into a string somehow, but thats overkill. I will approve.

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.

2 participants