Extend checks and add pre-commit to CI
I'll merge #406 and we can improve with this one (like https in link to editoconfig site) and add its tighter checks.
So this one has two parts. First is fixing up config files like .editorconfig and main workflow, making them more similar to their counterparts in linkml repo. Second part is tailoring quality checks to the runtime, and also making checks be similar to linkml, like performing full pre-commit run on all files instead of just running ruff and codespell on python files.
I am thinking about splitting it into two smaller PRs. Although this PR is not particularly large. What do you think?
Ok, I split this into two PRs. Turning this one into draft until we fix all problems highlighted by the lint
@vladistan I have moved the work on this PR into the repo branch https://github.com/linkml/linkml-runtime/tree/add-checks-and-pre-commit . If you would like to continue this work please re-open the PR on the mono-repo after the merge from that branch. We'll lift it over for you so it should take less effort.